diff options
author | Mark Lentczner <markl@glyphic.com> | 2010-07-18 06:12:22 +0000 |
---|---|---|
committer | Mark Lentczner <markl@glyphic.com> | 2010-07-18 06:12:22 +0000 |
commit | a7aad74a978e2e1d313c23863c7a91983bbc4848 (patch) | |
tree | b5f4859924a03f0c294131599ebdf4e82c3bf625 /src/Haddock/Backends/Xhtml/Layout.hs | |
parent | b143d90c46e01a3c2724003c4805110fab4b224e (diff) |
add .doc class to documentation blocks
Diffstat (limited to 'src/Haddock/Backends/Xhtml/Layout.hs')
-rw-r--r-- | src/Haddock/Backends/Xhtml/Layout.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Haddock/Backends/Xhtml/Layout.hs b/src/Haddock/Backends/Xhtml/Layout.hs index 0b4af0c0..ade5a266 100644 --- a/src/Haddock/Backends/Xhtml/Layout.hs +++ b/src/Haddock/Backends/Xhtml/Layout.hs @@ -109,7 +109,7 @@ subDlist decls = Just $ dlist << map subEntry decls subEntry (decl, mdoc, subs) = dterm ! [theclass "src"] << decl +++ - ddef << (fmap docToHtml mdoc `with` subs) + docElement ddef << (fmap docToHtml mdoc `with` subs) Nothing `with` [] = spaceHtml ma `with` bs = ma +++ bs @@ -122,7 +122,7 @@ subTable decls = Just $ table << aboves (concatMap subRow decls) subRow (decl, mdoc, subs) = (td ! [theclass "src"] << decl <-> - td << nonEmpty (fmap docToHtml mdoc)) + docElement td << nonEmpty (fmap docToHtml mdoc)) : map (cell . (td <<)) subs subBlock :: [Html] -> Maybe Html |