Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
haddock
Compare Revisions
3fb325a2ca6b6397905116024922d079447a2e08...3937a98afe1bf1a215fd9115051af388e45b7299
Source
3937a98afe1bf1a215fd9115051af388e45b7299
Select Git revision
...
Target
3fb325a2ca6b6397905116024922d079447a2e08
Select Git revision
Compare
Commits (1)
Collapse user-defined section by default (re #335)
· 3937a98a
Herbert Valerio Riedel
authored
Oct 31, 2014
3937a98a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/Haddock/Backends/Xhtml/DocMarkup.hs
src/Haddock/Backends/Xhtml/DocMarkup.hs
+2
-2
No files found.
src/Haddock/Backends/Xhtml/DocMarkup.hs
View file @
3937a98a
...
...
@@ -150,8 +150,8 @@ hackMarkup fmt h = case h of
UntouchedDoc
d
->
markup
fmt
d
CollapsingHeader
(
Header
lvl
titl
)
par
n
nm
->
let
id_
=
makeAnchorId
$
"ch:"
++
fromMaybe
"noid:"
nm
++
show
n
col'
=
collapseControl
id_
Tru
e
"caption"
instTable
=
(
thediv
!
collapseSection
id_
Tru
e
[]
<<
)
col'
=
collapseControl
id_
Fals
e
"caption"
instTable
=
(
thediv
!
collapseSection
id_
Fals
e
[]
<<
)
lvs
=
zip
[
1
..
]
[
h1
,
h2
,
h3
,
h4
,
h5
,
h6
]
getHeader
=
fromMaybe
caption
(
lookup
lvl
lvs
)
subCation
=
getHeader
!
col'
<<
markup
fmt
titl
...
...