Man reader: allow .SS to have blank contents.

This commit is contained in:
John MacFarlane 2018-11-02 23:38:39 -07:00
parent bcfc66092a
commit 2843ee960f

View file

@ -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