on master help sign in
Leave blank lines blank terminal output.
3523f60Mohamad Barbar
src/terminal.rs+4
@@ -27,6 +27,10 @@ pub fn as_terminal_escaped(
27 italics: bool,
27 italics: bool,
28 background_color: Option<highlighting::Color>,
28 background_color: Option<highlighting::Color>,
29) -> String {
29) -> String {
30+ if text.is_empty() {
31+ return text.to_string();
32+ }
33+
30 let mut style = if !colored {
34 let mut style = if !colored {
31 Style::default()
35 Style::default()
32 } else {
36 } else {