aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2008-02-09 03:19:24 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2008-02-09 03:19:24 +0000
commitf2354590f99130bc74392a77f8c88e1e002f30d8 (patch)
treefe15bfca760e6959ed641ba408b4c27b00331152
parent2e683e8b534f3e10ffff6c0dd3cd7cab3ebd40a5 (diff)
downloadpandoc-f2354590f99130bc74392a77f8c88e1e002f30d8.tar.gz
Put language class information in pre tag, not code tag, in HTML code blocks.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1207 788f1e2b-df1e-0410-8736-df70ead52e1b
-rw-r--r--Text/Pandoc/Writers/HTML.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Text/Pandoc/Writers/HTML.hs b/Text/Pandoc/Writers/HTML.hs
index c31688ca6..847552faf 100644
--- a/Text/Pandoc/Writers/HTML.hs
+++ b/Text/Pandoc/Writers/HTML.hs
@@ -263,9 +263,9 @@ blockToHtml opts (Plain lst) = inlineListToHtml opts lst
blockToHtml opts (Para lst) = inlineListToHtml opts lst >>= (return . paragraph)
blockToHtml opts (RawHtml str) = return $ primHtml str
blockToHtml opts (HorizontalRule) = return $ hr
-blockToHtml opts (CodeBlock lang str) = return $ pre $
- thecode ! (if null lang then [] else [theclass lang]) << (str ++ "\n")
- -- the final \n for consistency with Markdown.pl
+blockToHtml opts (CodeBlock lang str) = return $
+ pre ! (if null lang then [] else [theclass lang]) $
+ thecode << (str ++ "\n") -- the final \n for consistency with Markdown.pl
blockToHtml opts (BlockQuote blocks) =
-- in S5, treat list in blockquote specially
-- if default is incremental, make it nonincremental;