From 94962cb644b3117e7dd46f16b1a4341609ad6bf2 Mon Sep 17 00:00:00 2001 From: Isaac Muse Date: Tue, 24 Jan 2017 08:36:37 -0700 Subject: Fix HTML parse with empty lines (#537) If both open and close was not found in first block, additional blocks were evaluated without context of previous blocks. The algorithm needs to evaluate a buffer with the left bracket present. So feed in all items and get the right bracket, then adjust the data_index to be relative to the last block. Fixes #452. --- tests/misc/html.html | 11 +++++++++++ tests/misc/html.txt | 11 +++++++++++ 2 files changed, 22 insertions(+) (limited to 'tests') diff --git a/tests/misc/html.html b/tests/misc/html.html index 1eb6a97..5380bbd 100644 --- a/tests/misc/html.html +++ b/tests/misc/html.html @@ -8,6 +8,17 @@ Html with various attributes. +
+
+ Div with a blank line + + in the middle. +
+
+ This gets treated as HTML. +
+
+

And of course .

this . [this ) -- cgit v1.2.3