aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-03-09 13:03:27 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2021-03-09 13:03:27 -0800
commit1c23e3a824bc4d850a908193443ad1915a3ebc61 (patch)
tree4119ba4c9713c25b1792520c8cf97ea56c2b9f82 /test
parenta8b2031bb43aaca9b4c5643d8d118166f93041c3 (diff)
downloadpandoc-1c23e3a824bc4d850a908193443ad1915a3ebc61.tar.gz
RST reader: fix logic for ending comments.
Previously comments sometimes got extended too far. Closes #7134.
Diffstat (limited to 'test')
-rw-r--r--test/command/7134.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/command/7134.md b/test/command/7134.md
new file mode 100644
index 000000000..c69ae4bd0
--- /dev/null
+++ b/test/command/7134.md
@@ -0,0 +1,16 @@
+```
+% pandoc -f rst -t native
+This is a paragraph.
+
+ This is a block quote.
+
+..
+
+ This should be a second block quote.
+^D
+[Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "paragraph."]
+,BlockQuote
+ [Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "block",Space,Str "quote."]]
+,BlockQuote
+ [Para [Str "This",Space,Str "should",Space,Str "be",Space,Str "a",Space,Str "second",Space,Str "block",Space,Str "quote."]]]
+```