From 6b08a37bbdc854b2ae13ea539be583736a5a7c70 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Fri, 31 Jul 2020 15:58:48 +0200 Subject: Org writer: don't force blank line after headers Closes: #6554 --- src/Text/Pandoc/Writers/Org.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Text/Pandoc/Writers/Org.hs b/src/Text/Pandoc/Writers/Org.hs index 628d91bf7..908543403 100644 --- a/src/Text/Pandoc/Writers/Org.hs +++ b/src/Text/Pandoc/Writers/Org.hs @@ -138,7 +138,7 @@ blockToOrg (Header level attr inlines) = do let drawerStr = if attr == nullAttr then empty else cr <> nest (level + 1) (propertiesDrawer attr) - return $ headerStr <> " " <> contents <> drawerStr <> blankline + return $ headerStr <> " " <> contents <> drawerStr <> cr blockToOrg (CodeBlock (_,classes,kvs) str) = do let startnum = maybe "" (\x -> " " <> trimr x) $ lookup "startFrom" kvs let numberlines = if "numberLines" `elem` classes -- cgit v1.2.3