Man writer: Ensure that terms in definition lists aren't line wrapped.

Closes #1195.
This commit is contained in:
John MacFarlane 2014-03-12 10:23:45 -07:00
parent c3a2fc643c
commit 76ef65f0b3

View file

@ -283,7 +283,7 @@ definitionListItemToMan opts (label, defs) = do
mapM (\item -> blockToMan opts item) rest
first' <- blockToMan opts first
return $ first' $$ text ".RS" $$ rest' $$ text ".RE"
return $ text ".TP" $$ text ".B " <> labelText $$ contents
return $ text ".TP" $$ nowrap (text ".B " <> labelText) $$ contents
-- | Convert list of Pandoc block elements to man.
blockListToMan :: WriterOptions -- ^ Options