aboutsummaryrefslogtreecommitdiff
path: root/haddock-api
diff options
context:
space:
mode:
authorKleidukos <hecate+github@glitchbra.in>2020-03-19 16:02:31 +0100
committerAlec Theriault <alec.theriault@gmail.com>2020-03-19 12:38:31 -0400
commit9a737d67d97ec4310b1ae89de640093c9d89e372 (patch)
tree03bfe65fe6352cf7032bec7cddc5b6f6c7de266b /haddock-api
parentbe8b02c4e3cffe7d45b3dad0a0f071d35a274d65 (diff)
Replace the 'caption' class so that the collapsible sections are shown
Diffstat (limited to 'haddock-api')
-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 1901cf05..edab4b16 100644
--- a/haddock-api/src/Haddock/Backends/Xhtml/DocMarkup.hs
+++ b/haddock-api/src/Haddock/Backends/Xhtml/DocMarkup.hs
@@ -182,7 +182,7 @@ hackMarkup fmt' currPkg h' =
UntouchedDoc d -> (markup fmt $ _doc d, [_meta d])
CollapsingHeader (Header lvl titl) par n nm ->
let id_ = makeAnchorId $ "ch:" ++ fromMaybe "noid:" nm ++ show n
- col' = collapseControl id_ "caption"
+ col' = collapseControl id_ "subheading"
summary = thesummary ! [ theclass "hide-when-js-enabled" ] << "Expand"
instTable contents = collapseDetails id_ DetailsClosed (summary +++ contents)
lvs = zip [1 .. ] [h1, h2, h3, h4, h5, h6]