mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Add fmt test to make sure formatting works for all parser test cases
This commit is contained in:
parent
492eb31a3d
commit
1efd7260de
5 changed files with 70 additions and 23 deletions
|
@ -109,7 +109,7 @@ impl<'a> Buf<'a> {
|
|||
if self.spaces_to_flush > 0 {
|
||||
self.flush_spaces();
|
||||
self.newline();
|
||||
} else if !self.text.ends_with('\n') {
|
||||
} else if !self.text.ends_with('\n') && !self.text.is_empty() {
|
||||
self.newline()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue