From 7b4f077652c774d8c366c9ac2aa3e6ca7ad708f2 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 7 Jun 2015 11:29:47 -0700 Subject: DokuWiki writer: Use proper `` tags for code blocks. Closes #2213. --- src/Text/Pandoc/Writers/DokuWiki.hs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Text/Pandoc/Writers') diff --git a/src/Text/Pandoc/Writers/DokuWiki.hs b/src/Text/Pandoc/Writers/DokuWiki.hs index 94f3a02cc..7164c6e86 100644 --- a/src/Text/Pandoc/Writers/DokuWiki.hs +++ b/src/Text/Pandoc/Writers/DokuWiki.hs @@ -172,10 +172,10 @@ blockToDokuWiki _ (CodeBlock (_,classes,_) str) = do "python", "qbasic", "rails", "reg", "robots", "ruby", "sas", "scheme", "sdlbasic", "smalltalk", "smarty", "sql", "tcl", "", "thinbasic", "tsql", "vb", "vbnet", "vhdl", "visualfoxpro", "winbatch", "xml", "xpp", "z80"] - let (beg, end) = if null at - then ("" else " class=\"" ++ unwords classes ++ "\">", "") - else ("", "") - return $ beg ++ str ++ end + return $ " ">\n" + (x:_) -> " " ++ x ++ ">\n") ++ str ++ "\n" blockToDokuWiki opts (BlockQuote blocks) = do contents <- blockListToDokuWiki opts blocks -- cgit v1.2.3