diff --git a/crates/cli/src/parse.rs b/crates/cli/src/parse.rs index 1023b0fc..292b3614 100644 --- a/crates/cli/src/parse.rs +++ b/crates/cli/src/parse.rs @@ -887,7 +887,7 @@ fn write_node_text( write!( out, "{}{}{}{}{}{}", - if multiline { "\n" } else { "" }, + if multiline { "\n" } else { " " }, if multiline { render_node_range(opts, cursor, is_named, true, total_width, node_range) } else { @@ -1011,10 +1011,9 @@ fn cst_render_node( } else { opts.parse_theme.node_kind }; - write!(out, "{}", paint(kind_color, node.kind()),)?; + write!(out, "{}", paint(kind_color, node.kind()))?; if node.child_count() == 0 { - write!(out, " ")?; // Node text from a pattern or external scanner write_node_text( opts,