From f609755cb6eed6e0f42f90f1c6814f7578b2000a Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Sat, 25 Aug 2007 18:17:01 +0000 Subject: Fixed bug in LaTeX writer. When a footnote ends with a Verbatim environment, the close } of the footnote needs to occur on the same line or an error occurs. Fixed by adding a newline before the close } in every footnote. git-svn-id: https://pandoc.googlecode.com/svn/trunk@897 788f1e2b-df1e-0410-8736-df70ead52e1b --- src/Text/Pandoc/Writers/LaTeX.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Text/Pandoc/Writers') 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. -- cgit v1.2.3