Leave blank lines blank terminal output.

Would add some ANSI colour codes previously.
pull/780/head
Mohamad Barbar 5 years ago committed by David Peter
parent 83dc8468b0
commit 3523f60299

@ -27,6 +27,10 @@ pub fn as_terminal_escaped(
italics: bool, italics: bool,
background_color: Option<highlighting::Color>, background_color: Option<highlighting::Color>,
) -> String { ) -> String {
if text.is_empty() {
return text.to_string();
}
let mut style = if !colored { let mut style = if !colored {
Style::default() Style::default()
} else { } else {

Loading…
Cancel
Save