diff options
author | Mark Lentczner <markl@glyphic.com> | 2010-07-27 21:06:34 +0000 |
---|---|---|
committer | Mark Lentczner <markl@glyphic.com> | 2010-07-27 21:06:34 +0000 |
commit | b99698a292a1475d1b7c3f49b2a4fccb9994ca7c (patch) | |
tree | e44d2e33b05c75248c8d41348c79f105360c2ae0 /src/Haddock/Backends/Xhtml/Layout.hs | |
parent | ccb3be7d8d24eda2b5d871b96966049f2f1a7fc3 (diff) |
give a class to empty dd elements so they can be hidden
Diffstat (limited to 'src/Haddock/Backends/Xhtml/Layout.hs')
-rw-r--r-- | src/Haddock/Backends/Xhtml/Layout.hs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Haddock/Backends/Xhtml/Layout.hs b/src/Haddock/Backends/Xhtml/Layout.hs index 9e45b812..02146476 100644 --- a/src/Haddock/Backends/Xhtml/Layout.hs +++ b/src/Haddock/Backends/Xhtml/Layout.hs @@ -117,11 +117,7 @@ subDlist decls = Just $ dlist << map subEntry decls +++ clearDiv subEntry (decl, mdoc, subs) = dterm ! [theclass "src"] << decl +++ - docElement ddef << (fmap docToHtml mdoc `with` subs) - - Nothing `with` [] = spaceHtml - ma `with` bs = ma +++ bs - + docElement ddef << (fmap docToHtml mdoc +++ subs) clearDiv = thediv ! [ theclass "clear" ] << noHtml @@ -132,7 +128,7 @@ subTable decls = Just $ table << aboves (concatMap subRow decls) subRow (decl, mdoc, subs) = (td ! [theclass "src"] << decl <-> - docElement td << nonEmpty (fmap docToHtml mdoc)) + docElement td << fmap docToHtml mdoc) : map (cell . (td <<)) subs |