diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-06-21 23:17:43 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-06-21 23:17:43 -0700 |
commit | e2a7ecb5f73b12c8141ebf873a494652fc53babd (patch) | |
tree | 269972235fc7a2146e1ea9a8d1c5027017dfa2da /src/Text/Pandoc/Writers | |
parent | 0352f7845bfa2053797850c3639414978285b63e (diff) | |
download | pandoc-e2a7ecb5f73b12c8141ebf873a494652fc53babd.tar.gz |
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.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r-- | src/Text/Pandoc/Writers/LaTeX.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index 063e347fb..32d1bc2a5 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -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 |