From 25e187598f06f04feeacbf967b7651e93286d3f4 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Thu, 7 Feb 2013 11:43:46 -0500 Subject: HtmlBlockProcessor preserves empty lines Partial fix for #183. This has the same effect on empty lines in code blocks as not using the html processor at all (which was eating some of the missing newlines as reported in issue #183). By doing `rsplit('\n\n')` the third newline (in each set of three) always ends up at the end of a block, rather than the begining - which it less of an issue for the html processor. Also updated tests to indicate final intended output, although they do not fully pass yet. --- tests/misc/blank_lines_in_codeblocks.html | 32 ++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'tests/misc/blank_lines_in_codeblocks.html') diff --git a/tests/misc/blank_lines_in_codeblocks.html b/tests/misc/blank_lines_in_codeblocks.html index 77da8e4..57a4c36 100644 --- a/tests/misc/blank_lines_in_codeblocks.html +++ b/tests/misc/blank_lines_in_codeblocks.html @@ -1,4 +1,34 @@ -

Preserve blank lines in code blocks

+

Preserve blank lines in code blocks with tabs:

+
a code block
+
+two tabbed lines
+
+
+three tabbed lines
+
+
+
+four tabbed lines
+
+
+
+
+five tabbed lines
+
+
+
+
+
+six tabbed lines
+
+
+
+
+
+
+End of tabbed block
+
+

And without tabs:

a code block
 
 two blank lines
-- 
cgit v1.2.3