aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-06-21 18:25:07 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-06-21 18:25:07 -0700
commiteee648447a05accb5680b5a1a6e69a7765af2db5 (patch)
treeeb187db19b4e939a22beb62c166480b39f77d63d
parent14b2eb2aeb21b3dee7d07c7348ebd2c586d6a866 (diff)
downloadpandoc-eee648447a05accb5680b5a1a6e69a7765af2db5.tar.gz
LaTeX writer: Use `\strut` instead of `~` before `\\` in empty line.
-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 978f94ea0..063e347fb 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 "~" else "") <> "\\\\" <> cr
+ return $ (if emptyLine then "\\strut " else "") <> "\\\\" <> cr
inlineToLaTeX SoftBreak = do
wrapText <- gets (writerWrapText . stOptions)
case wrapText of