From 70cb3885b414fa9f895019e2e329e9f683ee0f18 Mon Sep 17 00:00:00 2001 From: tilpner Date: Fri, 3 May 2019 16:30:54 +0200 Subject: Reduce empty lines in chromium ctrl-A selection --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 6413bea..6fb7cc8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -192,9 +192,9 @@ fn highlight(cfg: &Config, mut input: Box) -> impl Iterator< let mut html = Vec::new(); let mut formatted_line = String::new(); let (_, bg) = start_highlighted_html_snippet(theme); - let _ = write!(&mut html, "
");
+    let _ = write!(&mut html, "
");
     for (i, _line) in input_str.lines().enumerate() {
-        let _ = writeln!(&mut html, "", i, i);
+        let _ = write!(&mut html, "", i, i);
     }
     let _ = write!(&mut html, "
");
 
-- 
cgit v1.2.3