aboutsummaryrefslogtreecommitdiffstats
path: root/src/grid.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/grid.rs')
-rw-r--r--src/grid.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/grid.rs b/src/grid.rs
index cfb04de..20fe17f 100644
--- a/src/grid.rs
+++ b/src/grid.rs
@@ -117,7 +117,7 @@ impl Grid {
for row in self.rows().skip(row_start).take(row_end - row_start + 1) {
contents += &row.contents(col_start, col_end);
}
- contents
+ contents.trim_end().to_string()
}
pub fn contents_formatted(
@@ -137,7 +137,7 @@ impl Grid {
contents += new_contents;
prev_attrs = *new_attrs;
}
- contents
+ contents.trim_end().to_string()
}
pub fn erase_all(&mut self) {