git.iko.soy/typeable/pandoc
on master help sign in
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

commitf2354590f99130bc74392a77f8c88e1e002f30d8 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateSat 9 Feb 2008, 03:19 (19 years ago) parent2e683e8
1 file changed+3−3
Text/Pandoc/Writers/HTML.hs+3−3
Text/Pandoc/Writers/HTML.hs+3−3
@@ -263,9 +263,9 @@ blockToHtml opts (Plain lst) = inlineListToHtml opts lst
263263blockToHtml opts (Para lst) = inlineListToHtml opts lst >>= (return . paragraph)
264264blockToHtml opts (RawHtml str) = return $ primHtml str
265265blockToHtml opts (HorizontalRule) = return $ hr
266−blockToHtml opts (CodeBlock lang str) = return $ pre $
267− thecode ! (if null lang then [] else [theclass lang]) << (str ++ "\n")
268− -- the final \n for consistency with Markdown.pl
266+blockToHtml opts (CodeBlock lang str) = return $
267+ pre ! (if null lang then [] else [theclass lang]) $
268+ thecode << (str ++ "\n") -- the final \n for consistency with Markdown.pl
269269blockToHtml opts (BlockQuote blocks) =
270270 -- in S5, treat list in blockquote specially
271271 -- if default is incremental, make it nonincremental;