diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-11-02 23:38:39 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-11-02 23:38:39 -0700 |
commit | 2843ee960f76be5bb8eeee01c31e502912770e36 (patch) | |
tree | 4396ea20c48061653905564e7a2211b9d8e19dba /src/Text/Pandoc/Readers | |
parent | bcfc66092a3eb0501e8be2295cfe27a059586f34 (diff) | |
download | pandoc-2843ee960f76be5bb8eeee01c31e502912770e36.tar.gz |
Man reader: allow .SS to have blank contents.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r-- | src/Text/Pandoc/Readers/Man.hs | 2 |
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 |