don't leave blank lines

This commit is contained in:
Intege-rs
2025-12-02 15:42:34 -05:00
parent 6b390511d5
commit 47d6a564b6

View File

@@ -83,7 +83,8 @@ impl<'a> std::fmt::Write for LineSplicer<'a> {
fn write_str(&mut self, s: &str) -> std::fmt::Result {
for (p, part) in s.split("\n").with_position() {
match p {
Position::First => write!(self.0, "\n {:w$} {GRAY}╷{RESET} ", "", w=8+WIDTH_TOTAL),
Position::First => write!(self.0, "{RESET}"),
// Position::First => write!(self.0, "\n {:w$} {GRAY}│{RESET} ", "", w=8+WIDTH_TOTAL),
Position::Middle => write!(self.0, "\n {:w$} {GRAY}│{RESET} ", "", w=8+WIDTH_TOTAL),
Position::Last => write!(self.0, "\n {:w$} {GRAY}╵{RESET} ", "", w=8+WIDTH_TOTAL),
Position::Only => write!(self.0, "{RESET}"),