LaTeX writer: put a strut after a line break (\\).

This ensures that we have proper spacing before the next
line (which might e.g. be a table bottom border).
This gives better results in cases like test/command/7272.md.
This commit is contained in:
John MacFarlane 2021-06-21 23:17:43 -07:00
parent 0352f7845b
commit e2a7ecb5f7

View file

@ -919,7 +919,7 @@ inlineToLaTeX il@(RawInline f str) = do
inlineToLaTeX LineBreak = do
emptyLine <- gets stEmptyLine
setEmptyLine True
return $ (if emptyLine then "\\strut " else "") <> "\\\\" <> cr
return $ (if emptyLine then "\\strut " else "") <> "\\\\ \\strut" <> cr
inlineToLaTeX SoftBreak = do
wrapText <- gets (writerWrapText . stOptions)
case wrapText of