Skip to content
Snippets Groups Projects
Commit 365c77df authored by Nuno Alexandre's avatar Nuno Alexandre Committed by Alec Theriault
Browse files

Make package-header caption backward-compatible

The current html generator of this branch wraps the package-header
caption as a div, which does not work (without style adjustments) with
the old themes. Changing it from div to span does the trick, without
needing to adjust the old stylesheets.
parent 1f28a9a7
No related branches found
No related tags found
No related merge requests found
......@@ -74,8 +74,8 @@ sectionName = paragraph ! [theclass "caption"]
-- If it would have otherwise been empty, then give it the class ".empty".
nonEmptySectionName :: Html -> Html
nonEmptySectionName c
| isNoHtml c = thediv ! [theclass "caption empty"] $ spaceHtml
| otherwise = thediv ! [theclass "caption"] $ c
| isNoHtml c = thespan ! [theclass "caption empty"] $ spaceHtml
| otherwise = thespan ! [theclass "caption"] $ c
divPackageHeader, divContent, divModuleHeader, divFooter,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment