aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2021-01-09 13:35:07 +0100
committerAlbert Krewinkel <albert@zeitkraut.de>2021-01-09 13:40:31 +0100
commitfe1378227b24fa6a8661b2e0d377b808eb270c52 (patch)
tree2387dfb4c17f244b349d88e348b45d63bc66b6bb /test
parent4f3434586743afb69f00ca91fe6ec9b68b39ae7e (diff)
downloadpandoc-fe1378227b24fa6a8661b2e0d377b808eb270c52.tar.gz
Org reader: allow multiple pipe chars in todo sequences
Additional pipe chars, used to separate "action" state from "no further action" states, are ignored. E.g., for the following sequence, both `DONE` and `FINISHED` are states with no further action required. #+TODO: UNFINISHED | DONE | FINISHED Previously, parsing of the todo sequence failed if multiple pipe chars were included. Closes: #7014
Diffstat (limited to 'test')
-rw-r--r--test/Tests/Readers/Org/Meta.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Tests/Readers/Org/Meta.hs b/test/Tests/Readers/Org/Meta.hs
index b30b8949a..3c50f891b 100644
--- a/test/Tests/Readers/Org/Meta.hs
+++ b/test/Tests/Readers/Org/Meta.hs
@@ -116,6 +116,16 @@ tests =
"#+LANGUAGE: de-DE" =?>
Pandoc (setMeta "lang" (MetaString "de-DE") nullMeta) mempty
+ , testGroup "Todo sequences"
+ [ "not included in document" =:
+ "#+todo: WAITING | FINISHED" =?>
+ Pandoc mempty mempty
+
+ , "can contain multiple pipe characters" =:
+ "#+todo: UNFINISHED | RESEARCH | NOTES | CHART\n" =?>
+ Pandoc mempty mempty
+ ]
+
, testGroup "LaTeX"
[ "LATEX_HEADER" =:
"#+latex_header: \\usepackage{tikz}" =?>