From 3de1f19b435695a7312f015d30316442b493ebd9 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Thu, 23 Aug 2007 23:20:54 +0000 Subject: Removed incorrect "{}" around style information in HTML tables. Adjusted test suite accordingly. Column widths now work properly in HTML. git-svn-id: https://pandoc.googlecode.com/svn/trunk@882 788f1e2b-df1e-0410-8736-df70ead52e1b --- src/Text/Pandoc/Writers/HTML.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs index cad0915df..e234b7fca 100644 --- a/src/Text/Pandoc/Writers/HTML.hs +++ b/src/Text/Pandoc/Writers/HTML.hs @@ -347,8 +347,8 @@ tableItemToHtml opts tag align' width item = do contents <- blockListToHtml opts item let attrib = [align align'] ++ if width /= 0 - then [thestyle ("{width: " ++ show (truncate (100*width)) ++ - "%;}")] + then [thestyle ("width: " ++ show (truncate (100*width)) ++ + "%;")] else [] return $ tag ! attrib $ contents -- cgit v1.2.3