aboutsummaryrefslogtreecommitdiff
path: root/Text/Pandoc
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-01-24 19:59:00 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-01-24 19:59:00 +0000
commited588464971fd0f13c241e4176731711019f369b (patch)
treeba29f37e019e67509ebff99be2940dd5f6800404 /Text/Pandoc
parent2806aee9b210c338037176bff467b76a394b120f (diff)
downloadpandoc-ed588464971fd0f13c241e4176731711019f369b.tar.gz
Fixed bug in mediawiki writer: improper closing tags in tables.
<th> instead of </th>, <td> instead of </td>. Thanks to Benct Philip Jonsson for reporting the bug. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1524 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'Text/Pandoc')
-rw-r--r--Text/Pandoc/Writers/MediaWiki.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Text/Pandoc/Writers/MediaWiki.hs b/Text/Pandoc/Writers/MediaWiki.hs
index d25cfaed0..c5f6b3bf1 100644
--- a/Text/Pandoc/Writers/MediaWiki.hs
+++ b/Text/Pandoc/Writers/MediaWiki.hs
@@ -295,7 +295,7 @@ tableItemToMediaWiki opts tag' align' width' item = do
if width' /= 0
then " style=\"width: " ++ (show (truncate (100 * width') :: Integer)) ++ "%;\""
else ""
- return $ "<" ++ tag' ++ attrib ++ ">" ++ contents ++ "<" ++ tag' ++ ">"
+ return $ "<" ++ tag' ++ attrib ++ ">" ++ contents ++ "</" ++ tag' ++ ">"
-- | Convert list of Pandoc block elements to MediaWiki.
blockListToMediaWiki :: WriterOptions -- ^ Options