fix(render): suppress blank lines above rendered table

This commit is contained in:
2026-07-22 12:37:30 -06:00
parent 8cfd5ee2c4
commit dfacf31f6a
2 changed files with 52 additions and 12 deletions
+3 -1
View File
@@ -132,7 +132,9 @@ async fn markdown_stream_inner(
let text = format!("{buffer}{text}");
let (head, tail) = split_line_tail(&text);
let output = render.render(head);
print_block(writer, &output, columns)?;
if !output.is_empty() {
print_block(writer, &output, columns)?;
}
buffer = tail.to_string();
} else {
buffer = format!("{buffer}{text}");