From a7aad74a978e2e1d313c23863c7a91983bbc4848 Mon Sep 17 00:00:00 2001 From: Mark Lentczner Date: Sun, 18 Jul 2010 06:12:22 +0000 Subject: add .doc class to documentation blocks --- src/Haddock/Backends/Xhtml/Layout.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Haddock/Backends/Xhtml/Layout.hs') 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 -- cgit v1.2.3