aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Readers
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2017-11-22 22:17:45 +0100
committerAlbert Krewinkel <albert@zeitkraut.de>2017-11-22 22:53:24 +0100
commitcd85c73ded2b100d33d3c1d36eac182bdd593b2f (patch)
tree6673938b9530697eb5738750c42ec56934429ca3 /test/Tests/Readers
parent75e2a1104cda760a939ca12258c0355844f70a31 (diff)
downloadpandoc-cd85c73ded2b100d33d3c1d36eac182bdd593b2f.tar.gz
Org reader: allow empty list items
Fixes: #4090
Diffstat (limited to 'test/Tests/Readers')
-rw-r--r--test/Tests/Readers/Org.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Tests/Readers/Org.hs b/test/Tests/Readers/Org.hs
index 30074d6bd..dbd56c880 100644
--- a/test/Tests/Readers/Org.hs
+++ b/test/Tests/Readers/Org.hs
@@ -1262,6 +1262,12 @@ tests =
, headerWith ("notvalidlistitem", [], []) 1 "NotValidListItem"
]
+ , "Empty bullet points" =:
+ T.unlines [ "-"
+ , "- "
+ ] =?>
+ bulletList [ plain "", plain "" ]
+
, "Simple Ordered List" =:
("1. Item1\n" <>
"2. Item2\n") =?>
@@ -1289,6 +1295,12 @@ tests =
]
in orderedListWith listStyle listStructure
+ , "Empty ordered list item" =:
+ T.unlines [ "1."
+ , "3. "
+ ] =?>
+ orderedList [ plain "", plain "" ]
+
, "Nested Ordered Lists" =:
("1. One\n" <>
" 1. One-One\n" <>