leave newlines, because we are in a <pre><code>

This commit is contained in:
Mark 2024-06-26 13:51:21 +02:00
parent 4c17fa1745
commit 08b4af3fa4

View File

@ -172,6 +172,6 @@ impl ThemeGen for HtmlDefaultTheme {
} }
} }
fn nocolor(&self, text: &str, t: &mut String) { fn nocolor(&self, text: &str, t: &mut String) {
t.push_str(html_escape::encode_text(text).replace("\n", "<br>\n")); html_escape::encode_text_to_string(text, t);
} }
} }