From 8b00bc6029b9285f872ae517a8d4538c66070fa9 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Mon, 13 May 2019 22:44:53 +0200 Subject: 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 --- src/Text/Pandoc/Readers/Org/DocumentTree.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3