aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2020-04-07 22:56:02 +0000
committerIngo Schwarze <schwarze@openbsd.org>2020-04-07 22:56:02 +0000
commitf4c07cc80595b2276a99fd6e5c95c734187feaab (patch)
tree23f120c67a8a3f6a33615c3d4d9f8115ed9ac08d /regress
parent70b71d1de24478a8fcc7413f1cb42c83db416bc3 (diff)
downloadmandoc-f4c07cc80595b2276a99fd6e5c95c734187feaab.tar.gz
mandoc-f4c07cc80595b2276a99fd6e5c95c734187feaab.tar.zst
mandoc-f4c07cc80595b2276a99fd6e5c95c734187feaab.zip
Separate the place to put the <a href> permalink (now marked
with NODE_HREF) from the target element of the link (still marked with NODE_ID). In many cases, use this to move the target to the beginning of the paragraph, such that readers don't get dropped into the middle of a sentence.
Diffstat (limited to 'regress')
-rw-r--r--regress/mdoc/Cm/tag.out_html10
-rw-r--r--regress/mdoc/Dv/tag.out_html4
-rw-r--r--regress/mdoc/Em/tag.out_html4
-rw-r--r--regress/mdoc/Er/tag.out_html2
-rw-r--r--regress/mdoc/Ev/tag.out_html4
-rw-r--r--regress/mdoc/Fl/tag.out_html4
-rw-r--r--regress/mdoc/Fo/tag.out_html13
-rw-r--r--regress/mdoc/Ic/tag.out_html4
-rw-r--r--regress/mdoc/Li/tag.out_html4
-rw-r--r--regress/mdoc/Ms/tag.out_html4
-rw-r--r--regress/mdoc/No/tag.out_html4
-rw-r--r--regress/mdoc/Sy/tag.out_html4
-rw-r--r--regress/mdoc/Tg/column.in7
-rw-r--r--regress/mdoc/Tg/column.out_ascii2
-rw-r--r--regress/mdoc/Tg/column.out_markdown2
-rw-r--r--regress/mdoc/Tg/warn.out_html2
16 files changed, 37 insertions, 37 deletions
diff --git a/regress/mdoc/Cm/tag.out_html b/regress/mdoc/Cm/tag.out_html
index 134f21c4..5141f52a 100644
--- a/regress/mdoc/Cm/tag.out_html
+++ b/regress/mdoc/Cm/tag.out_html
@@ -1,15 +1,15 @@
<dl class="Bl-tag">
- <dt><a class="permalink" href="#one"><code class="Cm" id="one">one</code></a>
+ <dt id="one"><a class="permalink" href="#one"><code class="Cm">one</code></a>
|
<a class="permalink" href="#two"><code class="Cm" id="two">two</code></a></dt>
<dd>text</dd>
- <dt><a class="permalink" href="#three"><code class="Cm" id="three">three</code></a></dt>
+ <dt id="three"><a class="permalink" href="#three"><code class="Cm">three</code></a></dt>
<dd>text</dd>
- <dt><a class="permalink" href="#hyphen"><code class="Cm" id="hyphen">-hyphen</code></a></dt>
+ <dt id="hyphen"><a class="permalink" href="#hyphen"><code class="Cm">-hyphen</code></a></dt>
<dd>text</dd>
- <dt><a class="permalink" href="#minus"><code class="Cm" id="minus">-minus-sign</code></a></dt>
+ <dt id="minus"><a class="permalink" href="#minus"><code class="Cm">-minus-sign</code></a></dt>
<dd>text</dd>
- <dt><a class="permalink" href="#backslash"><code class="Cm" id="backslash">\backslash</code></a></dt>
+ <dt id="backslash"><a class="permalink" href="#backslash"><code class="Cm">\backslash</code></a></dt>
<dd>text</dd>
</dl>
<a class="permalink" href="#four"><code class="Cm" id="four">four</code></a>
diff --git a/regress/mdoc/Dv/tag.out_html b/regress/mdoc/Dv/tag.out_html
index cee78340..4f04e0b7 100644
--- a/regress/mdoc/Dv/tag.out_html
+++ b/regress/mdoc/Dv/tag.out_html
@@ -1,9 +1,9 @@
<dl class="Bl-tag">
- <dt><a class="permalink" href="#one"><code class="Dv" id="one">one</code></a>
+ <dt id="one"><a class="permalink" href="#one"><code class="Dv">one</code></a>
|
<a class="permalink" href="#two"><code class="Dv" id="two">two</code></a></dt>
<dd>text</dd>
- <dt><a class="permalink" href="#three"><code class="Dv" id="three">three</code></a></dt>
+ <dt id="three"><a class="permalink" href="#three"><code class="Dv">three</code></a></dt>
<dd>text</dd>
</dl>
<a class="permalink" href="#four"><code class="Dv" id="four">four</code></a>
diff --git a/regress/mdoc/Em/tag.out_html b/regress/mdoc/Em/tag.out_html
index 225343ee..f5c47121 100644
--- a/regress/mdoc/Em/tag.out_html
+++ b/regress/mdoc/Em/tag.out_html
@@ -1,8 +1,8 @@
<dl class="Bl-tag">
- <dt><a class="permalink" href="#one"><i class="Em" id="one">one</i></a> |
+ <dt id="one"><a class="permalink" href="#one"><i class="Em">one</i></a> |
<a class="permalink" href="#two"><i class="Em" id="two">two</i></a></dt>
<dd>text</dd>
- <dt><a class="permalink" href="#three-with-hyphens"><i class="Em" id="three-with-hyphens">three-with-hyphens</i></a></dt>
+ <dt id="three-with-hyphens"><a class="permalink" href="#three-with-hyphens"><i class="Em">three-with-hyphens</i></a></dt>
<dd>text</dd>
</dl>
<a class="permalink" href="#four"><i class="Em" id="four">four</i></a>
diff --git a/regress/mdoc/Er/tag.out_html b/regress/mdoc/Er/tag.out_html
index a2c2978f..80daa28b 100644
--- a/regress/mdoc/Er/tag.out_html
+++ b/regress/mdoc/Er/tag.out_html
@@ -7,6 +7,6 @@
<section class="Sh">
<h1 class="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
<dl class="Bl-tag">
- <dt>[<a class="permalink" href="#ENOENT"><code class="Er" id="ENOENT">ENOENT</code></a>]</dt>
+ <dt id="ENOENT">[<a class="permalink" href="#ENOENT"><code class="Er">ENOENT</code></a>]</dt>
<dd>text</dd>
</dl>
diff --git a/regress/mdoc/Ev/tag.out_html b/regress/mdoc/Ev/tag.out_html
index 1e1c92b9..ccc5beb0 100644
--- a/regress/mdoc/Ev/tag.out_html
+++ b/regress/mdoc/Ev/tag.out_html
@@ -1,9 +1,9 @@
<dl class="Bl-tag">
- <dt><a class="permalink" href="#one"><code class="Ev" id="one">one</code></a>
+ <dt id="one"><a class="permalink" href="#one"><code class="Ev">one</code></a>
|
<a class="permalink" href="#two"><code class="Ev" id="two">two</code></a></dt>
<dd>text</dd>
- <dt><a class="permalink" href="#three"><code class="Ev" id="three">three</code></a></dt>
+ <dt id="three"><a class="permalink" href="#three"><code class="Ev">three</code></a></dt>
<dd>text</dd>
</dl>
<a class="permalink" href="#four"><code class="Ev" id="four">four</code></a>
diff --git a/regress/mdoc/Fl/tag.out_html b/regress/mdoc/Fl/tag.out_html
index f67a30c0..c101124f 100644
--- a/regress/mdoc/Fl/tag.out_html
+++ b/regress/mdoc/Fl/tag.out_html
@@ -1,8 +1,8 @@
<dl class="Bl-tag">
- <dt><a class="permalink" href="#a"><code class="Fl" id="a">-a</code></a> |
+ <dt id="a"><a class="permalink" href="#a"><code class="Fl">-a</code></a> |
<a class="permalink" href="#b"><code class="Fl" id="b">-b</code></a></dt>
<dd>text</dd>
- <dt><a class="permalink" href="#c"><code class="Fl" id="c">-c</code></a></dt>
+ <dt id="c"><a class="permalink" href="#c"><code class="Fl">-c</code></a></dt>
<dd>text</dd>
</dl>
<a class="permalink" href="#d"><code class="Fl" id="d">-d</code></a>
diff --git a/regress/mdoc/Fo/tag.out_html b/regress/mdoc/Fo/tag.out_html
index b3508614..018ff92e 100644
--- a/regress/mdoc/Fo/tag.out_html
+++ b/regress/mdoc/Fo/tag.out_html
@@ -1,9 +1,8 @@
-<p class="Pp">automatic:
- <a class="permalink" href="#first"><code class="Fn" id="first">first</code></a>()
- and <code class="Fn">second</code>()</p>
-<p class="Pp"><a class="permalink" href="#second"><code class="Fn" id="second">second</code></a>()
+<p class="Pp" id="first">automatic:
+ <a class="permalink" href="#first"><code class="Fn">first</code></a>() and
+ <code class="Fn">second</code>()</p>
+<p class="Pp" id="second"><a class="permalink" href="#second"><code class="Fn">second</code></a>()
and <code class="Fn">first</code>()</p>
-<p class="Pp">explicit:
- <a class="permalink" href="#e3"><code class="Fn" id="e3">third</code></a>()
- and
+<p class="Pp" id="e3">explicit:
+ <a class="permalink" href="#e3"><code class="Fn">third</code></a>() and
<a class="permalink" href="#e4"><code class="Fn" id="e4">fourth</code></a>(<var class="Fa">void</var>);</p>
diff --git a/regress/mdoc/Ic/tag.out_html b/regress/mdoc/Ic/tag.out_html
index ad3cc1ef..7148cc88 100644
--- a/regress/mdoc/Ic/tag.out_html
+++ b/regress/mdoc/Ic/tag.out_html
@@ -1,9 +1,9 @@
<dl class="Bl-tag">
- <dt><a class="permalink" href="#one"><code class="Ic" id="one">one</code></a>
+ <dt id="one"><a class="permalink" href="#one"><code class="Ic">one</code></a>
|
<a class="permalink" href="#two"><code class="Ic" id="two">two</code></a></dt>
<dd>text</dd>
- <dt><a class="permalink" href="#three"><code class="Ic" id="three">three</code></a></dt>
+ <dt id="three"><a class="permalink" href="#three"><code class="Ic">three</code></a></dt>
<dd>text</dd>
</dl>
<a class="permalink" href="#four"><code class="Ic" id="four">four</code></a>
diff --git a/regress/mdoc/Li/tag.out_html b/regress/mdoc/Li/tag.out_html
index 3730caa6..d1b71573 100644
--- a/regress/mdoc/Li/tag.out_html
+++ b/regress/mdoc/Li/tag.out_html
@@ -1,9 +1,9 @@
<dl class="Bl-tag">
- <dt><a class="permalink" href="#one"><code class="Li" id="one">one</code></a>
+ <dt id="one"><a class="permalink" href="#one"><code class="Li">one</code></a>
|
<a class="permalink" href="#two"><code class="Li" id="two">two</code></a></dt>
<dd>text</dd>
- <dt><a class="permalink" href="#three"><code class="Li" id="three">three</code></a></dt>
+ <dt id="three"><a class="permalink" href="#three"><code class="Li">three</code></a></dt>
<dd>text</dd>
</dl>
<a class="permalink" href="#four"><code class="Li" id="four">four</code></a>
diff --git a/regress/mdoc/Ms/tag.out_html b/regress/mdoc/Ms/tag.out_html
index 0f24b2ac..9ae0292b 100644
--- a/regress/mdoc/Ms/tag.out_html
+++ b/regress/mdoc/Ms/tag.out_html
@@ -1,9 +1,9 @@
<dl class="Bl-tag">
- <dt><a class="permalink" href="#one"><span class="Ms" id="one">one</span></a>
+ <dt id="one"><a class="permalink" href="#one"><span class="Ms">one</span></a>
|
<a class="permalink" href="#two"><span class="Ms" id="two">two</span></a></dt>
<dd>text</dd>
- <dt><a class="permalink" href="#three"><span class="Ms" id="three">three</span></a></dt>
+ <dt id="three"><a class="permalink" href="#three"><span class="Ms">three</span></a></dt>
<dd>text</dd>
</dl>
<a class="permalink" href="#four"><span class="Ms" id="four">four</span></a>
diff --git a/regress/mdoc/No/tag.out_html b/regress/mdoc/No/tag.out_html
index 32696917..97109cee 100644
--- a/regress/mdoc/No/tag.out_html
+++ b/regress/mdoc/No/tag.out_html
@@ -1,9 +1,9 @@
<dl class="Bl-tag">
- <dt><a class="permalink" href="#one"><span class="No" id="one">one</span></a>
+ <dt id="one"><a class="permalink" href="#one"><span class="No">one</span></a>
|
<a class="permalink" href="#two"><span class="No" id="two">two</span></a></dt>
<dd>text</dd>
- <dt><a class="permalink" href="#three"><span class="No" id="three">three</span></a></dt>
+ <dt id="three"><a class="permalink" href="#three"><span class="No">three</span></a></dt>
<dd>text</dd>
</dl>
<a class="permalink" href="#four"><span class="No" id="four">four</span></a>
diff --git a/regress/mdoc/Sy/tag.out_html b/regress/mdoc/Sy/tag.out_html
index 69276a18..cca78319 100644
--- a/regress/mdoc/Sy/tag.out_html
+++ b/regress/mdoc/Sy/tag.out_html
@@ -1,8 +1,8 @@
<dl class="Bl-tag">
- <dt><a class="permalink" href="#one"><b class="Sy" id="one">one</b></a> |
+ <dt id="one"><a class="permalink" href="#one"><b class="Sy">one</b></a> |
<a class="permalink" href="#two"><b class="Sy" id="two">two</b></a></dt>
<dd>text</dd>
- <dt><a class="permalink" href="#three"><b class="Sy" id="three">three</b></a></dt>
+ <dt id="three"><a class="permalink" href="#three"><b class="Sy">three</b></a></dt>
<dd>text</dd>
</dl>
<a class="permalink" href="#four"><b class="Sy" id="four">four</b></a>
diff --git a/regress/mdoc/Tg/column.in b/regress/mdoc/Tg/column.in
index 50b0d1f0..d717283b 100644
--- a/regress/mdoc/Tg/column.in
+++ b/regress/mdoc/Tg/column.in
@@ -1,5 +1,5 @@
-.\" $OpenBSD: column.in,v 1.1 2020/04/06 09:55:50 schwarze Exp $
-.Dd $Mdocdate: April 6 2020 $
+.\" $OpenBSD: column.in,v 1.2 2020/04/07 22:45:38 schwarze Exp $
+.Dd $Mdocdate: April 7 2020 $
.Dt TG-COLUMN 1
.Os
.Sh NAME
@@ -9,8 +9,9 @@
BEGINTEST
.Tg list
.Bl -column one two
+.It one Ta
.Tg row1
-.It one Ta two
+two
.Tg row2
.It 1 2
.El
diff --git a/regress/mdoc/Tg/column.out_ascii b/regress/mdoc/Tg/column.out_ascii
index 3051005b..60391cff 100644
--- a/regress/mdoc/Tg/column.out_ascii
+++ b/regress/mdoc/Tg/column.out_ascii
@@ -10,4 +10,4 @@ DDEESSCCRRIIPPTTIIOONN
1 2
ENDTEST
-OpenBSD April 6, 2020 OpenBSD
+OpenBSD April 7, 2020 OpenBSD
diff --git a/regress/mdoc/Tg/column.out_markdown b/regress/mdoc/Tg/column.out_markdown
index a6820fd0..2042eb99 100644
--- a/regress/mdoc/Tg/column.out_markdown
+++ b/regress/mdoc/Tg/column.out_markdown
@@ -13,4 +13,4 @@ BEGINTEST
ENDTEST
-OpenBSD - April 6, 2020
+OpenBSD - April 7, 2020
diff --git a/regress/mdoc/Tg/warn.out_html b/regress/mdoc/Tg/warn.out_html
index fdc333b6..a7f92574 100644
--- a/regress/mdoc/Tg/warn.out_html
+++ b/regress/mdoc/Tg/warn.out_html
@@ -1,4 +1,4 @@
-<p class="Pp"><mark id="start-tag"></mark>initial text
+<p class="Pp" id="start-tag">initial text
<a class="permalink" href="#macro"><code class="Ic" id="macro">macro</code></a>
too many badstart badend whitespace <mark id="sub"></mark></p>
<section class="Ss">