Fix breakline problems

This commit is contained in:
Ferran Basora 2019-03-11 18:02:32 +00:00
parent 4c42803ed6
commit c8769553f9

View File

@ -55,8 +55,7 @@ impl<'a> View<'a> {
let clean = line.trim_end_matches(|c: char| c.is_whitespace()); let clean = line.trim_end_matches(|c: char| c.is_whitespace());
if clean.len() > 0 { if clean.len() > 0 {
let formatted = format!("{}\n", line).to_string(); rustbox.print(0, index, rustbox::RB_NORMAL, Color::White, Color::Black, line);
rustbox.print(0, index, rustbox::RB_NORMAL, Color::White, Color::Black, formatted.as_str());
} }
} }