From cdecabd3f453038c62f5004352a88b8fc0936e09 Mon Sep 17 00:00:00 2001 From: Gabriel Van Zandycke Date: Sat, 22 Mar 2025 10:58:53 +0100 Subject: [PATCH] [#954] Do not collapse blank lines inside snippets --- src/parser.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/parser.rs b/src/parser.rs index d031525..e4ea6c1 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -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('%') {