diff options
| author | Emilio Jesus Gallego Arias | 2019-11-21 18:56:17 +0100 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2019-11-21 18:56:17 +0100 |
| commit | 1b33b57f56f4d53d20318fe9be97dec274086f5b (patch) | |
| tree | 5ce9d34268d22c3f44303438756e0be83ea3ca99 /tools | |
| parent | a876df3f1e9a495ee04c78321adf83a31ede7f3c (diff) | |
| parent | b5fc7e9e8efc18935d562bd0690c9667fdc8066f (diff) | |
Merge PR #10587: [coqdoc] Nest <a> into <h2> instead of the other way around
Reviewed-by: ejgallego
Reviewed-by: gares
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/coqdoc/output.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/coqdoc/output.ml b/tools/coqdoc/output.ml index 5edf2b0d77..717c06a868 100644 --- a/tools/coqdoc/output.ml +++ b/tools/coqdoc/output.ml @@ -929,9 +929,9 @@ module Html = struct stop_item (); let ms = match sub with | None -> m | Some s -> m ^ ": " ^ s in if ln = "" then - printf "<a href=\"%s.html\"><h2>%s</h2></a>\n" m ms + printf "<h2><a href=\"%s.html\">%s</a></h2>\n" m ms else - printf "<a href=\"%s.html\"><h2>%s %s</h2></a>\n" m ln ms + printf "<h2><a href=\"%s.html\">%s %s</a></h2>\n" m ln ms | Toc_section (n, f, r) -> item n; printf "<a href=\"%s\">" r; f (); printf "</a>\n" |
