aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-08-25 18:17:01 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-08-25 18:17:01 +0000
commitf609755cb6eed6e0f42f90f1c6814f7578b2000a (patch)
treea83794affc8f719a7829630d9be842c708e85120 /tests
parentab23086b1b9d39d3d1466d9799f59ce4e13e6e8b (diff)
downloadpandoc-f609755cb6eed6e0f42f90f1c6814f7578b2000a.tar.gz
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
Diffstat (limited to 'tests')
-rw-r--r--tests/writer.latex13
1 files changed, 9 insertions, 4 deletions
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}
{ <code> }
\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.