diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<dyn BufRead + Send>) -> impl Iterator< let mut html = Vec::new(); let mut formatted_line = String::new(); let (_, bg) = start_highlighted_html_snippet(theme); - let _ = write!(&mut html, "<table><tr><td unselectable=\"on\"><pre class=\"linenumbers\">"); + let _ = write!(&mut html, "<table><tr><td><pre class=\"linenumbers\" disabled>"); for (i, _line) in input_str.lines().enumerate() { - let _ = writeln!(&mut html, "<a href=\"#L{}\" data-txt=\"{}\"></a>", i, i); + let _ = write!(&mut html, "<a href=\"#L{}\" data-txt=\"{}\"></a>", i, i); } let _ = write!(&mut html, "</pre></td><td><pre class=code><code>"); |