From ee2dee238d22cd08d60c3dcc3a9ee677b0f02067 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Sat, 6 Sep 2008 18:05:08 +0000 Subject: MediaWiki writer: print class attributes in
 for code blocks,
 if any.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1419 788f1e2b-df1e-0410-8736-df70ead52e1b
---
 Text/Pandoc/Writers/MediaWiki.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'Text/Pandoc/Writers')

diff --git a/Text/Pandoc/Writers/MediaWiki.hs b/Text/Pandoc/Writers/MediaWiki.hs
index 050781d37..d25cfaed0 100644
--- a/Text/Pandoc/Writers/MediaWiki.hs
+++ b/Text/Pandoc/Writers/MediaWiki.hs
@@ -109,7 +109,7 @@ blockToMediaWiki _ (CodeBlock (_,classes,_) str) = do
                        "smalltalk", "smarty", "sql", "tcl", "", "thinbasic", "tsql", "vb", "vbnet", "vhdl", 
                        "visualfoxpro", "winbatch", "xml", "xpp", "z80"]
   let (beg, end) = if null at
-                      then ("
", "
") + then ("" else " class=\"" ++ unwords classes ++ "\">", "
") else ("", "") return $ beg ++ escapeString str ++ end -- cgit v1.2.3