Skip to content

Commit cd078d3

Browse files
fix: trim redundant newlines given to the printer
1 parent abc0a68 commit cd078d3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/core/scriptslog.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ where P: Fn(&String) -> () {
9494
Ok(size) => {
9595
if size > 0 {
9696
last_pos += size as u64;
97+
98+
let text = text.trim().to_string();
9799
printer(&text);
98100
}
99101
}
@@ -150,6 +152,8 @@ where P: Fn(&String) -> () {
150152
Ok(size) => {
151153
if size > 0 {
152154
last_pos += size as u64;
155+
156+
let text = text.trim().to_string();
153157
printer(&text);
154158
}
155159
}

0 commit comments

Comments
 (0)