git.iko.soy/typeable/pandoc
on master help sign in
LaTeX writer: Use `\strut` instead of `~` before `\\` in empty line.
eee6484John MacFarlane
src/Text/Pandoc/Writers/LaTeX.hs+1−1
@@ -919,7 +919,7 @@ inlineToLaTeX il@(RawInline f str) = do
919inlineToLaTeX LineBreak = do
919inlineToLaTeX LineBreak = do
920 emptyLine <- gets stEmptyLine
920 emptyLine <- gets stEmptyLine
921 setEmptyLine True
921 setEmptyLine True
922− return $ (if emptyLine then "~" else "") <> "\\\\" <> cr
922+ return $ (if emptyLine then "\\strut " else "") <> "\\\\" <> cr
923inlineToLaTeX SoftBreak = do
923inlineToLaTeX SoftBreak = do
924 wrapText <- gets (writerWrapText . stOptions)
924 wrapText <- gets (writerWrapText . stOptions)
925 case wrapText of
925 case wrapText of