aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/man
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2019-03-01 10:57:17 +0000
committerIngo Schwarze <schwarze@openbsd.org>2019-03-01 10:57:17 +0000
commitd3f52b2d9dc5815b73119982013465a10140e182 (patch)
tree7e7fd84dc23986618089c3c295a5e1f89df55a97 /regress/man
parent122f08c3f3756fc23b3e070a0322f7250bddbfbf (diff)
downloadmandoc-d3f52b2d9dc5815b73119982013465a10140e182.tar.gz
mandoc-d3f52b2d9dc5815b73119982013465a10140e182.tar.zst
mandoc-d3f52b2d9dc5815b73119982013465a10140e182.zip
Wrap .Sh/.SH sections and .Ss/.SS subsections in HTML <section> elements
as recommended for accessibility by the HTML 5 standard. Triggered by a similar, but slightly different suggestion from Laura Morales <lauretas at mail dot com>.
Diffstat (limited to 'regress/man')
-rw-r--r--regress/man/IP/literal.out_html3
-rw-r--r--regress/man/SH/paragraph.out_html4
-rw-r--r--regress/man/SS/paragraph.out_html3
3 files changed, 10 insertions, 0 deletions
diff --git a/regress/man/IP/literal.out_html b/regress/man/IP/literal.out_html
index 844eb1dd..dce47df1 100644
--- a/regress/man/IP/literal.out_html
+++ b/regress/man/IP/literal.out_html
@@ -24,6 +24,7 @@ literal
paragraph
</pre>
regular text
+<section class="Ss">
<h2 class="Ss" id="literal_into_indented_paragraph"><a class="permalink" href="#literal_into_indented_paragraph">literal
into indented paragraph</a></h2>
regular text
@@ -42,6 +43,8 @@ text
indented regular text</dd>
</dl>
<p class="Pp">new regular paragraph</p>
+</section>
+<section class="Ss">
<h2 class="Ss" id="literal_out_of_indented_paragraph"><a class="permalink" href="#literal_out_of_indented_paragraph">literal
out of indented paragraph</a></h2>
regular text
diff --git a/regress/man/SH/paragraph.out_html b/regress/man/SH/paragraph.out_html
index 49627f19..6423855a 100644
--- a/regress/man/SH/paragraph.out_html
+++ b/regress/man/SH/paragraph.out_html
@@ -1,6 +1,10 @@
BEGINTEST
+</section>
+<section class="Sh">
<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
This text immediately follows a section header.
<p class="Pp">This is a paragraph.</p>
+</section>
+<section class="Sh">
<h1 class="Sh" id="EXAMPLES"><a class="permalink" href="#EXAMPLES">EXAMPLES</a></h1>
ENDTEST
diff --git a/regress/man/SS/paragraph.out_html b/regress/man/SS/paragraph.out_html
index bc803f86..fa385635 100644
--- a/regress/man/SS/paragraph.out_html
+++ b/regress/man/SS/paragraph.out_html
@@ -1,8 +1,11 @@
BEGINTEST
+<section class="Ss">
<h2 class="Ss" id="First_subsection"><a class="permalink" href="#First_subsection">First
subsection</a></h2>
This text immediately follows a subsection header.
<p class="Pp">This is a paragraph.</p>
+</section>
+<section class="Ss">
<h2 class="Ss" id="Second_subsection"><a class="permalink" href="#Second_subsection">Second
subsection</a></h2>
ENDTEST