aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs
index ad1f3e45f..530bd26e1 100644
--- a/src/Text/Pandoc/Writers/LaTeX.hs
+++ b/src/Text/Pandoc/Writers/LaTeX.hs
@@ -278,4 +278,6 @@ inlineToLaTeX (Note contents) = do
contents' <- blockListToLaTeX contents
st <- get
put (st {stInNote = False})
- return $ "\\footnote{" ++ stripTrailingNewlines contents' ++ "}"
+ return $ "\\footnote{" ++ stripTrailingNewlines contents' ++ "\n}"
+ -- note: the \n before } is important; removing it causes problems
+ -- if a Verbatim environment occurs at the end of the footnote.