Skip to content

Commit

Permalink
make InMemoryTerm::contents trim_end lines
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-laplante authored and djc committed Mar 21, 2022
1 parent 3e5aceb commit 479565e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ impl InMemoryTerm {
.into_iter()
.rev()
.skip_while(|line| line.is_empty())
.map(|line| line.trim_end().to_string())
.collect();

// Un-reverse the rows and join them up with newlines
Expand Down

0 comments on commit 479565e

Please sign in to comment.