Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion haddock-api/src/Haddock/Backends/Xhtml/DocMarkup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ hackMarkup fmt' h' =
let id_ = makeAnchorId $ "ch:" ++ fromMaybe "noid:" nm ++ show n
col' = collapseControl id_ "caption"
summary = thesummary ! [ theclass "hide-when-js-enabled" ] << "Expand"
instTable contents = collapseDetails id_ DetailsClosed (summary +++ contents)
instTable contents = collapseDetails id_ DetailsOpen (summary +++ contents)
lvs = zip [1 .. ] [h1, h2, h3, h4, h5, h6]
getHeader = fromMaybe caption (lookup lvl lvs)
subCaption = getHeader ! col' << markup fmt titl
Expand Down
4 changes: 2 additions & 2 deletions html-test/ref/Bug335.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
><div class="doc"
><h3 class="caption details-toggle-control details-toggle" data-details-id="ch:f0"
>ExF:</h3
><details id="ch:f0"
><details id="ch:f0" open="open"
><summary class="hide-when-js-enabled"
>Expand</summary
><p
Expand All @@ -85,7 +85,7 @@
><div class="doc"
><h3 class="caption details-toggle-control details-toggle" data-details-id="ch:g0"
>ExG:</h3
><details id="ch:g0"
><details id="ch:g0" open="open"
><summary class="hide-when-js-enabled"
>Expand</summary
><pre class="screen"
Expand Down