1
1
mirror of https://github.com/github/semantic.git synced 2025-01-02 20:41:38 +03:00

Add colgroups to tables.

This commit is contained in:
Rob Rix 2015-12-15 10:10:51 -05:00
parent ece14e5b8d
commit 766142efd4

View File

@ -61,7 +61,8 @@ split diff before after = return . renderHtml
. docTypeHtml
. ((head $ link ! A.rel (stringValue "stylesheet") ! A.href (stringValue "style.css")) <>)
. body
. (table ! A.class_ (stringValue "diff"))
. (table ! A.class_ (stringValue "diff")) $
((<>) (colgroup (col ! A.width (stringValue "44")) <> col <> (col ! A.width (stringValue "44")) <> col))
. mconcat $ toMarkup <$> (reverse $ foldl numberRows [] rows)
where
rows = fst $ diffToRows diff (0, 0) before after