diff --git a/src/tree.rs b/src/tree.rs index f76a876..49379e4 100644 --- a/src/tree.rs +++ b/src/tree.rs @@ -244,7 +244,7 @@ impl std::fmt::Debug for fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { const INDENT: &str = " "; let mut level = 0; - write!(f, "\n")?; + writeln!(f)?; for e in self.clone() { let indent = INDENT.repeat(level); match e.kind {