summaryrefslogtreecommitdiffstats
path: root/regress/mdoc/Cm
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2020-03-21 00:25:19 +0000
committerIngo Schwarze <schwarze@openbsd.org>2020-03-21 00:25:19 +0000
commit301fcb7f99e5f0dd68697a7a835fa5cec7a89883 (patch)
treeee6a734b473e3c4349da90764bab8a87e12fc21c /regress/mdoc/Cm
parentadf661d0e6a266fb863f2b05859244eaae613344 (diff)
downloadmandoc-301fcb7f99e5f0dd68697a7a835fa5cec7a89883.tar.gz
test skipping of initial hyphens and minus signs in automatic tags;
related to tags.c rev. 1.30
Diffstat (limited to 'regress/mdoc/Cm')
-rw-r--r--regress/mdoc/Cm/tag.in10
-rw-r--r--regress/mdoc/Cm/tag.out_ascii11
-rw-r--r--regress/mdoc/Cm/tag.out_html6
-rw-r--r--regress/mdoc/Cm/tag.out_markdown14
-rw-r--r--regress/mdoc/Cm/tag.out_tag5
5 files changed, 41 insertions, 5 deletions
diff --git a/regress/mdoc/Cm/tag.in b/regress/mdoc/Cm/tag.in
index 2fe7d1e3..e32bf077 100644
--- a/regress/mdoc/Cm/tag.in
+++ b/regress/mdoc/Cm/tag.in
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tag.in,v 1.1 2020/03/13 00:31:05 schwarze Exp $
+.\" $OpenBSD: tag.in,v 1.2 2020/03/21 00:20:38 schwarze Exp $
.Dd $Mdocdate$
.Dt CM-TAG 1
.Os
@@ -8,12 +8,18 @@
.Sh DESCRIPTION
BEGINTEST
.Bl -tag -width Ds
-.It Cm one | two
+.It Cm one | \&two
text
.It Xo
.Cm three
.Xc
text
+.It Cm -hyphen
+text
+.It Cm \-minus\-sign
+text
+.It Cm \ebackslash
+text
.El
.Tg
.Cm four
diff --git a/regress/mdoc/Cm/tag.out_ascii b/regress/mdoc/Cm/tag.out_ascii
index 071408c7..0923a82e 100644
--- a/regress/mdoc/Cm/tag.out_ascii
+++ b/regress/mdoc/Cm/tag.out_ascii
@@ -10,8 +10,17 @@ DDEESSCCRRIIPPTTIIOONN
text
tthhrreeee text
+
+ --hhyypphheenn
+ text
+
+ --mmiinnuuss--ssiiggnn
+ text
+
+ \\bbaacckkssllaasshh
+ text
ffoouurr
ENDTEST
-OpenBSD March 13, 2020 OpenBSD
+OpenBSD March 21, 2020 OpenBSD
diff --git a/regress/mdoc/Cm/tag.out_html b/regress/mdoc/Cm/tag.out_html
index a140fe3e..134f21c4 100644
--- a/regress/mdoc/Cm/tag.out_html
+++ b/regress/mdoc/Cm/tag.out_html
@@ -5,5 +5,11 @@
<dd>text</dd>
<dt><a class="permalink" href="#three"><code class="Cm" id="three">three</code></a></dt>
<dd>text</dd>
+ <dt><a class="permalink" href="#hyphen"><code class="Cm" id="hyphen">-hyphen</code></a></dt>
+ <dd>text</dd>
+ <dt><a class="permalink" href="#minus"><code class="Cm" id="minus">-minus-sign</code></a></dt>
+ <dd>text</dd>
+ <dt><a class="permalink" href="#backslash"><code class="Cm" id="backslash">\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/Cm/tag.out_markdown b/regress/mdoc/Cm/tag.out_markdown
index 893a8fe5..26a7fe87 100644
--- a/regress/mdoc/Cm/tag.out_markdown
+++ b/regress/mdoc/Cm/tag.out_markdown
@@ -16,8 +16,20 @@ BEGINTEST
> text
+**-hyphen**
+
+> text
+
+**&#45;minus&#45;sign**
+
+> text
+
+**&#92;backslash**
+
+> text
+
**four**
ENDTEST
-OpenBSD - March 13, 2020
+OpenBSD - March 21, 2020
diff --git a/regress/mdoc/Cm/tag.out_tag b/regress/mdoc/Cm/tag.out_tag
index 94f0cfb2..0b97edbc 100644
--- a/regress/mdoc/Cm/tag.out_tag
+++ b/regress/mdoc/Cm/tag.out_tag
@@ -1,4 +1,7 @@
one 9
two 9
three 12
-four 13
+hyphen 14
+minus 17
+backslash 20
+four 22