aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2019-05-13 22:44:53 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2019-05-13 22:55:13 +0200
commit8b00bc6029b9285f872ae517a8d4538c66070fa9 (patch)
tree250a99a611b0bc1f552c5ceee825a318f3b81704 /src
parent00ef03827e4ab77a1213b2adf261c818ddae076d (diff)
downloadpandoc-8b00bc6029b9285f872ae517a8d4538c66070fa9.tar.gz
Org reader: fix planning elements in headers level 3 and higher
Planning info is now always placed before the subtree contents. Previously, the planning info was placed after the content if the header's subtree was converted to a list, which happens with headers of level 3 and higher per default. Fixes: #5494
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/Org/DocumentTree.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Org/DocumentTree.hs b/src/Text/Pandoc/Readers/Org/DocumentTree.hs
index 07b3178ff..c96087be7 100644
--- a/src/Text/Pandoc/Readers/Org/DocumentTree.hs
+++ b/src/Text/Pandoc/Readers/Org/DocumentTree.hs
@@ -235,8 +235,8 @@ headlineToHeaderWithList hdln = do
else flattenHeader header
return . mconcat $
[ headerText
- , headlineContents hdln
, planningBlock
+ , headlineContents hdln
, listBlock
]
where