From 8201257b5c13f90f14aa529fac1b341fd1a900eb Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 30 Apr 2012 07:46:38 -0700 Subject: LaTeX writer: Fixed spacing in quote environments. Closes #502. Previously you'd get: ~~~ hi \begin{quote} hi \end{quote} hi ~~~ Now we get: ~~~ hi \begin{quote} hi \end{quote} hi ~~~ --- src/Text/Pandoc/Writers/LaTeX.hs | 3 ++- 1 file changed, 2 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 923d8361b..b114e4444 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -278,7 +278,8 @@ blockToLaTeX (BlockQuote lst) = do return result _ -> do contents <- blockListToLaTeX lst - return $ "\\begin{quote}" $$ contents $$ "\\end{quote}" + return $ "\\begin{quote}" $$ chomp contents $$ "\\end{quote}" + <> blankline blockToLaTeX (CodeBlock (_,classes,keyvalAttr) str) = do opts <- gets stOptions case () of -- cgit v1.2.3