[#954] Do not collapse blank lines inside snippets

This commit is contained in:
Gabriel Van Zandycke 2025-03-22 10:58:53 +01:00
parent 47199b413b
commit cdecabd3f4

View file

@ -258,9 +258,9 @@ impl<'a> Parser<'a> {
// blank
if line.is_empty() {
// if !item.snippet.is_empty() {
// item.snippet.push_str(deser::LINE_SEPARATOR);
// }
if !item.snippet.is_empty() && inside_snippet {
item.snippet.push_str(deser::LINE_SEPARATOR);
}
}
// tag
else if line.starts_with('%') {