aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Readers/Org/Block
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2018-09-06 20:57:21 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2018-09-06 20:57:21 +0200
commit275afec38a9feb1143344af19d5ebfbf4ef4fb32 (patch)
tree9d1c02bf9aed7b54bd42553a0f41f42a09a62baf /test/Tests/Readers/Org/Block
parentaac3d752e1f059d2727863a4705feef4e5a05f3e (diff)
downloadpandoc-275afec38a9feb1143344af19d5ebfbf4ef4fb32.tar.gz
Org reader: respect export option `p` for planning info
Inclusion of planning info (*DEADLINE*, *SCHEDULED*, and *CLOSED*) can be controlled via the `p` export option: setting the option to `t` will add all planning information in a *Plain* block below the respective headline.
Diffstat (limited to 'test/Tests/Readers/Org/Block')
-rw-r--r--test/Tests/Readers/Org/Block/Header.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Tests/Readers/Org/Block/Header.hs b/test/Tests/Readers/Org/Block/Header.hs
index 6f38714cd..913c830d6 100644
--- a/test/Tests/Readers/Org/Block/Header.hs
+++ b/test/Tests/Readers/Org/Block/Header.hs
@@ -205,5 +205,18 @@ tests =
, " :END:"
] =?>
headerWith ("look", [], []) 1 "important"
+
+ , "Planning info followed by test" =:
+ T.unlines [ "* important "
+ , " " <> T.unwords
+ [ "CLOSED: [2018-09-05 Wed 13:58]"
+ , "DEADLINE: <2018-09-17 Mon>"
+ , "SCHEDULED: <2018-09-10 Mon>"
+ ]
+ , " :PROPERTIES:"
+ , " :custom_id: look"
+ , " :END:"
+ ] =?>
+ headerWith ("look", [], []) 1 "important"
]
]