aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/Man.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Man.hs b/src/Text/Pandoc/Readers/Man.hs
index 9884ff8fb..fa5ffbdfa 100644
--- a/src/Text/Pandoc/Readers/Man.hs
+++ b/src/Text/Pandoc/Readers/Man.hs
@@ -419,7 +419,7 @@ parseHeader :: PandocMonad m => ManParser m Blocks
parseHeader = do
ControlLine name args _ <- mmacro "SH" <|> mmacro "SS"
contents <- if null args
- then lineInl
+ then option mempty lineInl
else return $ mconcat $ intersperse B.space
$ map linePartsToInlines args
let lvl = if name == "SH" then 1 else 2