summaryrefslogtreecommitdiff
path: root/tests/Tests/Readers/Org.hs
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2016-07-14 13:23:18 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2016-07-14 13:33:25 +0200
commit529146decf7f0e390964bb7aa709082af6e8639b (patch)
tree735fc7f770e72e612a1cf820830115abb3f0a69c /tests/Tests/Readers/Org.hs
parent106786ef1b1275cbaab9173e7f1c9372dec88279 (diff)
Org reader: fix parsing of verbatim inlines
Org rules for allowed characters before or after markup chars were not checked for verbatim text. This resultet in wrong parsing outcomes of if the verbatim text contained e.g. space enclosed markup characters as part of the text (`=is_substr = True=`). Forcing the parser to update the positions of allowed/forbidden markup border characters fixes this. This fixes #3016.
Diffstat (limited to 'tests/Tests/Readers/Org.hs')
-rw-r--r--tests/Tests/Readers/Org.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/Tests/Readers/Org.hs b/tests/Tests/Readers/Org.hs
index fdd9bc6bf..1f8a8a01e 100644
--- a/tests/Tests/Readers/Org.hs
+++ b/tests/Tests/Readers/Org.hs
@@ -185,6 +185,9 @@ tests =
, "3" <> subscript "{}"
, "4" <> superscript ("(a(" <> strong "b(c" <> ")d))")
])
+ , "Verbatim text can contain equal signes (=)" =:
+ "=is_subst = True=" =?>
+ para (code "is_subst = True")
, "Image" =:
"[[./sunset.jpg]]" =?>