While the HTML standard allows multiple <h1> elements in the same
authorschwarze <schwarze@openbsd.org>
Wed, 6 Jul 2022 14:27:54 +0000 (14:27 +0000)
committerschwarze <schwarze@openbsd.org>
Wed, 6 Jul 2022 14:27:54 +0000 (14:27 +0000)
commit00b92a3f667b1b2e3a2ae04c788cc2b374cbd0ba
treebab920077bc258bce977fd9dc0c53a037f512000
parent0e5db3ae92bfe8295f6f113efd3968091a096fc5
While the HTML standard allows multiple <h1> elements in the same
document, <h1> is intended for top level headers, and most of the
sections in a manual page can hardly be considered top-level.
It is more usual to use <h1> only for the main title of the document
of for the site name.

Consequently, move .Sh/.SH from <h1> to <h2> and .Ss/.SS from <h2>
to <h3>, freeing <h1> for use by header.html in man.cgi(8).

Discussed with Anna Vyalkova <cyber at sysrq dot in>.
14 files changed:
regress/usr.bin/mandoc/man/IP/literal.out_html
regress/usr.bin/mandoc/man/SH/paragraph.out_html
regress/usr.bin/mandoc/man/SS/paragraph.out_html
regress/usr.bin/mandoc/man/TP/vert.out_html
regress/usr.bin/mandoc/mdoc/Er/tag.out_html
regress/usr.bin/mandoc/mdoc/Rs/paragraph.out_html
regress/usr.bin/mandoc/mdoc/Sh/paragraph.out_html
regress/usr.bin/mandoc/mdoc/Sh/tag.out_html
regress/usr.bin/mandoc/mdoc/Tg/warn.out_html
usr.bin/mandoc/html.c
usr.bin/mandoc/html.h
usr.bin/mandoc/man_html.c
usr.bin/mandoc/mandoc.css
usr.bin/mandoc/mdoc_html.c