diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-06-21 18:25:07 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-06-21 18:25:07 -0700 |
commit | eee648447a05accb5680b5a1a6e69a7765af2db5 (patch) | |
tree | eb187db19b4e939a22beb62c166480b39f77d63d /src | |
parent | 14b2eb2aeb21b3dee7d07c7348ebd2c586d6a866 (diff) | |
download | pandoc-eee648447a05accb5680b5a1a6e69a7765af2db5.tar.gz |
LaTeX writer: Use `\strut` instead of `~` before `\\` in empty line.
Diffstat (limited to 'src')
-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 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 |