don't leave blank lines
This commit is contained in:
@@ -83,7 +83,8 @@ impl<'a> std::fmt::Write for LineSplicer<'a> {
|
|||||||
fn write_str(&mut self, s: &str) -> std::fmt::Result {
|
fn write_str(&mut self, s: &str) -> std::fmt::Result {
|
||||||
for (p, part) in s.split("\n").with_position() {
|
for (p, part) in s.split("\n").with_position() {
|
||||||
match p {
|
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::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::Last => write!(self.0, "\n {:w$} {GRAY}╵{RESET} ", "", w=8+WIDTH_TOTAL),
|
||||||
Position::Only => write!(self.0, "{RESET}"),
|
Position::Only => write!(self.0, "{RESET}"),
|
||||||
|
|||||||
Reference in New Issue
Block a user