fixup
This commit is contained in:
parent
5b1cd8245f
commit
95fc3ba41c
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ impl<'a> Printer<'a> {
|
|||
}
|
||||
|
||||
fn newline(&mut self) {
|
||||
match self.buf.chars().rev().skip_while(|ch| *ch == ' ').next() {
|
||||
match self.buf.chars().rev().find(|ch| *ch != ' ') {
|
||||
Some('\n') | None => {}
|
||||
_ => writeln!(self).unwrap(),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue