summaryrefslogtreecommitdiffstats
path: root/regress/mdoc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2023-11-24 05:06:56 +0000
committerIngo Schwarze <schwarze@openbsd.org>2023-11-24 05:06:56 +0000
commitc95404e2e1a9ff5e187d4df29a6a91cf7b34c1c5 (patch)
treeeafc67f10b56ee4fc794178e836de0dd2f687cea /regress/mdoc
parent7c821146e12f71433cc5a7c3ee230f03a36997e1 (diff)
downloadmandoc-origin.tar.gz
Additional tests of automatic tagging involving different kinds of hyphensHEADoriginmaster
after tag.c rev. 1.38.
Diffstat (limited to 'regress/mdoc')
-rw-r--r--regress/mdoc/Em/tag.in4
-rw-r--r--regress/mdoc/Em/tag.out_ascii5
-rw-r--r--regress/mdoc/Em/tag.out_html2
-rw-r--r--regress/mdoc/Em/tag.out_markdown6
-rw-r--r--regress/mdoc/Em/tag.out_tag5
-rw-r--r--regress/mdoc/Sy/tag.in4
-rw-r--r--regress/mdoc/Sy/tag.out_ascii5
-rw-r--r--regress/mdoc/Sy/tag.out_html2
-rw-r--r--regress/mdoc/Sy/tag.out_markdown4
-rw-r--r--regress/mdoc/Sy/tag.out_tag6
10 files changed, 28 insertions, 15 deletions
diff --git a/regress/mdoc/Em/tag.in b/regress/mdoc/Em/tag.in
index 1c11f76c..6cc9c497 100644
--- a/regress/mdoc/Em/tag.in
+++ b/regress/mdoc/Em/tag.in
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tag.in,v 1.2 2020/04/02 14:55:29 schwarze Exp $
+.\" $OpenBSD: tag.in,v 1.3 2023/11/24 04:53:39 schwarze Exp $
.Dd $Mdocdate$
.Dt EM-TAG 1
.Os
@@ -14,6 +14,8 @@ text
.Em three-with-hyphens
.Xc
text
+.It Em minus\-sign
+text
.El
.Em four
.Em one
diff --git a/regress/mdoc/Em/tag.out_ascii b/regress/mdoc/Em/tag.out_ascii
index 283c1120..f2734e7c 100644
--- a/regress/mdoc/Em/tag.out_ascii
+++ b/regress/mdoc/Em/tag.out_ascii
@@ -11,8 +11,11 @@ DDEESSCCRRIIPPTTIIOONN
_t_h_r_e_e_-_w_i_t_h_-_h_y_p_h_e_n_s
text
+
+ _m_i_n_u_s_-_s_i_g_n
+ text
_f_o_u_r _o_n_e _f_i_v_e
ENDTEST
-OpenBSD April 2, 2020 OpenBSD
+OpenBSD November 24, 2023 OpenBSD
diff --git a/regress/mdoc/Em/tag.out_html b/regress/mdoc/Em/tag.out_html
index f5c47121..e977a39f 100644
--- a/regress/mdoc/Em/tag.out_html
+++ b/regress/mdoc/Em/tag.out_html
@@ -4,6 +4,8 @@
<dd>text</dd>
<dt id="three-with-hyphens"><a class="permalink" href="#three-with-hyphens"><i class="Em">three-with-hyphens</i></a></dt>
<dd>text</dd>
+ <dt id="minus-sign"><a class="permalink" href="#minus-sign"><i class="Em">minus-sign</i></a></dt>
+ <dd>text</dd>
</dl>
<a class="permalink" href="#four"><i class="Em" id="four">four</i></a>
<i class="Em">one</i>
diff --git a/regress/mdoc/Em/tag.out_markdown b/regress/mdoc/Em/tag.out_markdown
index c881c2d9..e12495cc 100644
--- a/regress/mdoc/Em/tag.out_markdown
+++ b/regress/mdoc/Em/tag.out_markdown
@@ -16,10 +16,14 @@ BEGINTEST
> text
+*minus&#45;sign*
+
+> text
+
*four*
*one*
*five*
ENDTEST
-OpenBSD - April 2, 2020
+OpenBSD - November 24, 2023
diff --git a/regress/mdoc/Em/tag.out_tag b/regress/mdoc/Em/tag.out_tag
index 15fcdbc9..6c756f40 100644
--- a/regress/mdoc/Em/tag.out_tag
+++ b/regress/mdoc/Em/tag.out_tag
@@ -3,5 +3,6 @@ DESCRIPTION tag.mandoc_ascii 6
one tag.mandoc_ascii 9
two tag.mandoc_ascii 9
three-with-hyphens tag.mandoc_ascii 12
-four tag.mandoc_ascii 14
-explicit tag.mandoc_ascii 14
+minus-sign tag.mandoc_ascii 15
+four tag.mandoc_ascii 17
+explicit tag.mandoc_ascii 17
diff --git a/regress/mdoc/Sy/tag.in b/regress/mdoc/Sy/tag.in
index b2719093..73db53c9 100644
--- a/regress/mdoc/Sy/tag.in
+++ b/regress/mdoc/Sy/tag.in
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tag.in,v 1.1 2020/03/13 00:31:06 schwarze Exp $
+.\" $OpenBSD: tag.in,v 1.2 2023/11/24 04:53:39 schwarze Exp $
.Dd $Mdocdate$
.Dt SY-TAG 1
.Os
@@ -11,7 +11,7 @@ BEGINTEST
.It Sy one | two
text
.It Xo
-.Sy three
+.Sy three-with\-hyphens
.Xc
text
.El
diff --git a/regress/mdoc/Sy/tag.out_ascii b/regress/mdoc/Sy/tag.out_ascii
index 3b89cb41..5a72c9e6 100644
--- a/regress/mdoc/Sy/tag.out_ascii
+++ b/regress/mdoc/Sy/tag.out_ascii
@@ -9,9 +9,10 @@ DDEESSCCRRIIPPTTIIOONN
oonnee | ttwwoo
text
- tthhrreeee text
+ tthhrreeee--wwiitthh--hhyypphheennss
+ text
ffoouurr oonnee ffiivvee
ENDTEST
-OpenBSD March 13, 2020 OpenBSD
+OpenBSD November 24, 2023 OpenBSD
diff --git a/regress/mdoc/Sy/tag.out_html b/regress/mdoc/Sy/tag.out_html
index cca78319..69b2af7b 100644
--- a/regress/mdoc/Sy/tag.out_html
+++ b/regress/mdoc/Sy/tag.out_html
@@ -2,7 +2,7 @@
<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 id="three"><a class="permalink" href="#three"><b class="Sy">three</b></a></dt>
+ <dt id="three-with-hyphens"><a class="permalink" href="#three-with-hyphens"><b class="Sy">three-with-hyphens</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/Sy/tag.out_markdown b/regress/mdoc/Sy/tag.out_markdown
index 5382a5e2..d4686eb7 100644
--- a/regress/mdoc/Sy/tag.out_markdown
+++ b/regress/mdoc/Sy/tag.out_markdown
@@ -12,7 +12,7 @@ BEGINTEST
> text
-**three**
+**three-with&#45;hyphens**
> text
@@ -22,4 +22,4 @@ BEGINTEST
ENDTEST
-OpenBSD - March 13, 2020
+OpenBSD - November 24, 2023
diff --git a/regress/mdoc/Sy/tag.out_tag b/regress/mdoc/Sy/tag.out_tag
index 8c523f07..15fcdbc9 100644
--- a/regress/mdoc/Sy/tag.out_tag
+++ b/regress/mdoc/Sy/tag.out_tag
@@ -2,6 +2,6 @@ NAME tag.mandoc_ascii 3
DESCRIPTION tag.mandoc_ascii 6
one tag.mandoc_ascii 9
two tag.mandoc_ascii 9
-three tag.mandoc_ascii 12
-four tag.mandoc_ascii 13
-explicit tag.mandoc_ascii 13
+three-with-hyphens tag.mandoc_ascii 12
+four tag.mandoc_ascii 14
+explicit tag.mandoc_ascii 14