LaTeX writer: Fix description lists contining highlighted code.
Closes #4662.
This commit is contained in:
parent
190ee279c9
commit
966bd94ba2
1 changed files with 4 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue