Fix newlines not being inserted when code tags aren't used for line breaks
Diff
src/git.rs | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
@@ -710,7 +710,8 @@
if line.len() > 2048 {
write!(out, "{}", Escape(line.trim_end()))?;
let line = if code_tag { line.trim_end() } else { line };
write!(out, "{}", Escape(line))?;
} else {
let mut cur_index = 0;
let ops = parse_state.parse_line(line, syntax_set)?;
@@ -754,7 +755,7 @@
})?;
}
let line = line.trim_end();
let line = if code_tag { line.trim_end() } else { line };
if line.len() > cur_index {
write!(out, "{}", Escape(&line[cur_index..]))?;
}