From 301fcb7f99e5f0dd68697a7a835fa5cec7a89883 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 21 Mar 2020 00:25:19 +0000 Subject: test skipping of initial hyphens and minus signs in automatic tags; related to tags.c rev. 1.30 --- regress/mdoc/Cm/tag.in | 10 ++++++++-- regress/mdoc/Cm/tag.out_ascii | 11 ++++++++++- regress/mdoc/Cm/tag.out_html | 6 ++++++ regress/mdoc/Cm/tag.out_markdown | 14 +++++++++++++- regress/mdoc/Cm/tag.out_tag | 5 ++++- 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 @@
text
text
+
+
text
+
+
text
+
+
text
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 + +**-minus-sign** + +> text + +**\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 -- cgit