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 --- tests/writer.latex | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'tests/writer.latex') diff --git a/tests/writer.latex b/tests/writer.latex index 00fc0d115..337fd05bb 100644 --- a/tests/writer.latex +++ b/tests/writer.latex @@ -673,21 +673,26 @@ Here is a movie \includegraphics{movie.jpg} icon. \section{Footnotes} -Here is a footnote reference,\footnote{Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.} and another.\footnote{Here's the long note. This one contains multiple blocks. +Here is a footnote reference,\footnote{Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document. +} and another.\footnote{Here's the long note. This one contains multiple blocks. Subsequent blocks are indented to show that they belong to the footnote (as with list items). \begin{Verbatim} { } \end{Verbatim} -If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.} This should \emph{not} be a footnote reference, because it contains a space.[\^{}my note] Here is an inline note.\footnote{This is \emph{easier} to type. Inline notes may contain \href{http://google.com}{links} and \verb!]! verbatim characters, as well as [bracketed text].} +If you want, you can indent every line, but you can also be lazy and just indent the first line of each block. +} This should \emph{not} be a footnote reference, because it contains a space.[\^{}my note] Here is an inline note.\footnote{This is \emph{easier} to type. Inline notes may contain \href{http://google.com}{links} and \verb!]! verbatim characters, as well as [bracketed text]. +} \begin{quote} -Notes can go in quotes.\footnote{In quote.} +Notes can go in quotes.\footnote{In quote. +} \end{quote} \begin{enumerate}[1.] -\item And in list items.\footnote{In list.} +\item And in list items.\footnote{In list. +} \end{enumerate} This paragraph should not be part of the note, as it is not indented. -- cgit v1.2.3