git.iko.soy/typeable/pandoc
on master help sign in
LaTeX writer: Fixed spacing in quote environments.
8201257John MacFarlane
src/Text/Pandoc/Writers/LaTeX.hs+2−1
@@ -278,7 +278,8 @@ blockToLaTeX (BlockQuote lst) = do
278 return result
278 return result
279 _ -> do
279 _ -> do
280 contents <- blockListToLaTeX lst
280 contents <- blockListToLaTeX lst
281− return $ "\\begin{quote}" $$ contents $$ "\\end{quote}"
281+ return $ "\\begin{quote}" $$ chomp contents $$ "\\end{quote}"
282+ <> blankline
282blockToLaTeX (CodeBlock (_,classes,keyvalAttr) str) = do
283blockToLaTeX (CodeBlock (_,classes,keyvalAttr) str) = do
283 opts <- gets stOptions
284 opts <- gets stOptions
284 case () of
285 case () of
tests/lhs-test.latex−1
@@ -86,7 +86,6 @@ Block quote:
86
86
87\begin{quote}
87\begin{quote}
88foo bar
88foo bar
89−
90\end{quote}
89\end{quote}
91
90
92\end{document}
91\end{document}
tests/lhs-test.latex+lhs−1
@@ -66,7 +66,6 @@ Block quote:
66
66
67\begin{quote}
67\begin{quote}
68foo bar
68foo bar
69−
70\end{quote}
69\end{quote}
71
70
72\end{document}
71\end{document}
tests/writer.latex+6−6
@@ -119,8 +119,8 @@ E-mail style:
119
119
120\begin{quote}
120\begin{quote}
121This is a block quote. It is pretty short.
121This is a block quote. It is pretty short.
122−
123\end{quote}
122\end{quote}
123+
124\begin{quote}
124\begin{quote}
125Code in a block quote:
125Code in a block quote:
126
126
@@ -141,13 +141,13 @@ Nested block quotes:
141
141
142\begin{quote}
142\begin{quote}
143nested
143nested
144−
145\end{quote}
144\end{quote}
145+
146\begin{quote}
146\begin{quote}
147nested
147nested
148−
149\end{quote}
148\end{quote}
150\end{quote}
149\end{quote}
150+
151This should not be a block quote: 2 \textgreater{} 1.
151This should not be a block quote: 2 \textgreater{} 1.
152
152
153And a following paragraph.
153And a following paragraph.
@@ -476,8 +476,8 @@ orange fruit
476\end{verbatim}
476\end{verbatim}
477\begin{quote}
477\begin{quote}
478orange block quote
478orange block quote
479−
480\end{quote}
479\end{quote}
480+
481\end{description}
481\end{description}
482Multiple definitions, tight:
482Multiple definitions, tight:
483
483
@@ -809,8 +809,8 @@ An e-mail address:
809
809
810\begin{quote}
810\begin{quote}
811Blockquoted: \url{http://example.com/}
811Blockquoted: \url{http://example.com/}
812−
813\end{quote}
812\end{quote}
813+
814Auto-links should not occur here:
814Auto-links should not occur here:
815\texttt{\textless{}http://example.com/\textgreater{}}
815\texttt{\textless{}http://example.com/\textgreater{}}
816
816
@@ -855,8 +855,8 @@ note.\footnote{This is \emph{easier} to type. Inline notes may contain
855
855
856\begin{quote}
856\begin{quote}
857Notes can go in quotes.\footnote{In quote.}
857Notes can go in quotes.\footnote{In quote.}
858−
859\end{quote}
858\end{quote}
859+
860\begin{enumerate}[1.]
860\begin{enumerate}[1.]
861\item
861\item
862 And in list items.\footnote{In list.}
862 And in list items.\footnote{In list.}