@@ -533,11 +533,16 @@ blockToHtml opts (Table capt aligns widths headers rows') = do
533 let percent w = show (truncate (100*w) :: Integer) ++ "%"
533 let percent w = show (truncate (100*w) :: Integer) ++ "%"
534 let coltags = if all (== 0.0) widths
534 let coltags = if all (== 0.0) widths
535 then mempty
535 then mempty
536− else mconcat $ map (\w ->
536+ else do
537− if writerHtml5 opts
540+ if writerHtml5 opts
538− then H.col ! A.style (toValue $ "width: " ++ percent w)
541+ then H.col ! A.style (toValue $ "width: " ++
539− else H.col ! A.width (toValue $ percent w) >> nl opts)
543+ else H.col ! A.width (toValue $ percent w)
540− widths
544+ nl opts) widths
541 head' <- if all null headers
546 head' <- if all null headers
542 then return mempty
547 then return mempty