From 54782c2af68c1b80d69ee028e74dd5ed17c0a934 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 11 Mar 2013 20:45:27 -0700 Subject: Fixed spacing bugs involving code block attributes. Closes #763. --- src/Text/Pandoc/Writers/Markdown.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc/Writers') diff --git a/src/Text/Pandoc/Writers/Markdown.hs b/src/Text/Pandoc/Writers/Markdown.hs index c19cad22b..876485552 100644 --- a/src/Text/Pandoc/Writers/Markdown.hs +++ b/src/Text/Pandoc/Writers/Markdown.hs @@ -328,7 +328,7 @@ blockToMarkdown opts (CodeBlock attribs str) = return $ | otherwise -> replicate (n+1) '~' backticks = text "```" attrs = if isEnabled Ext_fenced_code_attributes opts - then attrsToMarkdown attribs + then nowrap $ attrsToMarkdown attribs else empty blockToMarkdown opts (BlockQuote blocks) = do st <- get -- cgit v1.2.3