LaTeX writer: Fix description lists contining highlighted code.

Closes #4662.
This commit is contained in:
John MacFarlane 2018-09-29 23:29:32 -07:00
parent 190ee279c9
commit 966bd94ba2

View file

@ -870,9 +870,11 @@ defListItemToLaTeX (term, defs) = do
else term'
def' <- liftM vsep $ mapM blockListToLaTeX defs
return $ case defs of
((Header{} : _) : _) ->
((Header{} : _) : _) ->
"\\item" <> brackets term'' <> " ~ " $$ def'
_ ->
((CodeBlock{} : _) : _) -> -- see #4662
"\\item" <> brackets term'' <> " ~ " $$ def'
_ ->
"\\item" <> brackets term'' $$ def'
-- | Craft the section header, inserting the secton reference, if supplied.