fix(cli): remove trailing whitespace in cst print

This commit is contained in:
Will Lillis 2025-08-10 13:22:01 -04:00
parent 2c02f0767b
commit 3294b04436

View file

@ -973,9 +973,10 @@ 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,