From 594b25d53798c30735da5a9be19c06cc94052a16 Mon Sep 17 00:00:00 2001
From: Isaac Muse
Date: Mon, 23 Jan 2017 09:10:20 -0700
Subject: Fix hr recursion issue (#535)
HRProcessor tried to access a member variable after recursively calling
itself. In certain situations HRProcessor will try to access its
member variable containing its match, but it will not be the same match
that call in the stack expected. This is easily fixed by storing the
match locally *before* doing any recursive work.
---
tests/misc/blockquote-hr.html | 9 +++++++++
tests/misc/blockquote-hr.txt | 6 ++++++
2 files changed, 15 insertions(+)
(limited to 'tests')
diff --git a/tests/misc/blockquote-hr.html b/tests/misc/blockquote-hr.html
index 61c1a3c..e13784f 100644
--- a/tests/misc/blockquote-hr.html
+++ b/tests/misc/blockquote-hr.html
@@ -13,4 +13,13 @@ With multiple lines.
Even a lazy line.
The last line.
+
+foo
+
+bar
+
+
+
+
+baz
\ No newline at end of file
diff --git a/tests/misc/blockquote-hr.txt b/tests/misc/blockquote-hr.txt
index ef9c44f..8f67b24 100644
--- a/tests/misc/blockquote-hr.txt
+++ b/tests/misc/blockquote-hr.txt
@@ -19,3 +19,9 @@ Even a lazy line.
> ---
> The last line.
+
+foo
+> bar
+> ***
+---
+> baz
--
cgit v1.2.3