mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-29 03:36:42 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user