summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-02-16 06:44:10 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-02-16 06:44:10 -0800
commit3c0b582b52021a6abea644f056a4da4301e2bc30 (patch)
tree237109ea2bc5c56f40f305f7ac7a9ab892542044 /test
parentaf5bff782a9682531da0dec6469748cd0ea48489 (diff)
Properly handle " with no matching close quote with --smart.
This occurs in fiction: when a speaker has dialogue with multiple paragraphs, a close quote is used only on the final one. Added test cases.
Diffstat (limited to 'test')
-rw-r--r--test/smart_punct.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/smart_punct.txt b/test/smart_punct.txt
index 5deccde..66b6fd2 100644
--- a/test/smart_punct.txt
+++ b/test/smart_punct.txt
@@ -41,6 +41,21 @@ Here is some quoted '`code`' and a "[quoted link](url)".
.
.
+'tis the season to be 'jolly'
+.
+<p>’tis the season to be ‘jolly’</p>
+.
+
+.
+"A paragraph with no closing quote.
+
+"Second paragraph by same speaker, in fiction."
+.
+<p>“A paragraph with no closing quote.</p>
+<p>“Second paragraph by same speaker, in fiction.”</p>
+.
+
+.
Some dashes: one---two ---
three---four --- five.
.