aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-06-21 23:17:43 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-06-21 23:17:43 -0700
commite2a7ecb5f73b12c8141ebf873a494652fc53babd (patch)
tree269972235fc7a2146e1ea9a8d1c5027017dfa2da
parent0352f7845bfa2053797850c3639414978285b63e (diff)
downloadpandoc-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.
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs2
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