aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/Backends
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2014-10-31 11:08:02 +0100
committerMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>2014-12-12 06:46:17 +0000
commitad22493300eff0c1f55a617bdb129408011c35e0 (patch)
treead1f668eae2db8e7229c9ad08c358ade61375ed0 /haddock-api/src/Haddock/Backends
parent53ba3a8dd8407a816faa709fa3da4dc85a18e530 (diff)
Collapse user-defined section by default (re #335)
Conflicts: haddock-api/src/Haddock/Backends/Xhtml/DocMarkup.hs
Diffstat (limited to 'haddock-api/src/Haddock/Backends')
-rw-r--r--haddock-api/src/Haddock/Backends/Xhtml/DocMarkup.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/haddock-api/src/Haddock/Backends/Xhtml/DocMarkup.hs b/haddock-api/src/Haddock/Backends/Xhtml/DocMarkup.hs
index 565adef2..921e4090 100644
--- a/haddock-api/src/Haddock/Backends/Xhtml/DocMarkup.hs
+++ b/haddock-api/src/Haddock/Backends/Xhtml/DocMarkup.hs
@@ -161,7 +161,7 @@ hackMarkup fmt' h' =
CollapsingHeader (Header lvl titl) par n nm ->
let id_ = makeAnchorId $ "ch:" ++ fromMaybe "noid:" nm ++ show n
col' = collapseControl id_ True "caption"
- instTable = (thediv ! collapseSection id_ True [] <<)
+ instTable = (thediv ! collapseSection id_ False [] <<)
lvs = zip [1 .. ] [h1, h2, h3, h4, h5, h6]
getHeader = fromMaybe caption (lookup lvl lvs)
subCaption = getHeader ! col' << markup fmt titl