summaryrefslogtreecommitdiffstats
path: root/regress/mdoc/Cm
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2023-11-24 05:02:18 +0000
committerIngo Schwarze <schwarze@openbsd.org>2023-11-24 05:02:18 +0000
commit7c821146e12f71433cc5a7c3ee230f03a36997e1 (patch)
treead2b5e4d2b2134325706db645fd0ae3d090685fd /regress/mdoc/Cm
parent501a9474db7fcfba9e8035ca739d8e215ad93fa6 (diff)
downloadmandoc-7c821146e12f71433cc5a7c3ee230f03a36997e1.tar.gz
1. Do not put ASCII_HYPH (0x1c) into the tag file.
That happened when tagging a string containing '-' on an input text line, most commonly in man(7) .TP next line scope. 2. Do not let "\-" end the tag. In both cases, translate ASCII_HYPH and "\-" to plain '-' for output. For example, this improves handling of unbound.conf(5). These two bugs were found thanks to a posting by weerd@.
Diffstat (limited to 'regress/mdoc/Cm')
-rw-r--r--regress/mdoc/Cm/tag.out_html2
-rw-r--r--regress/mdoc/Cm/tag.out_tag2
2 files changed, 2 insertions, 2 deletions
diff --git a/regress/mdoc/Cm/tag.out_html b/regress/mdoc/Cm/tag.out_html
index 5141f52a..ceadb4b5 100644
--- a/regress/mdoc/Cm/tag.out_html
+++ b/regress/mdoc/Cm/tag.out_html
@@ -7,7 +7,7 @@
<dd>text</dd>
<dt id="hyphen"><a class="permalink" href="#hyphen"><code class="Cm">-hyphen</code></a></dt>
<dd>text</dd>
- <dt id="minus"><a class="permalink" href="#minus"><code class="Cm">-minus-sign</code></a></dt>
+ <dt id="minus-sign"><a class="permalink" href="#minus-sign"><code class="Cm">-minus-sign</code></a></dt>
<dd>text</dd>
<dt id="backslash"><a class="permalink" href="#backslash"><code class="Cm">\backslash</code></a></dt>
<dd>text</dd>
diff --git a/regress/mdoc/Cm/tag.out_tag b/regress/mdoc/Cm/tag.out_tag
index a59da516..d6bd49a5 100644
--- a/regress/mdoc/Cm/tag.out_tag
+++ b/regress/mdoc/Cm/tag.out_tag
@@ -4,6 +4,6 @@ one tag.mandoc_ascii 9
two tag.mandoc_ascii 9
three tag.mandoc_ascii 12
hyphen tag.mandoc_ascii 14
-minus tag.mandoc_ascii 17
+minus-sign tag.mandoc_ascii 17
backslash tag.mandoc_ascii 20
four tag.mandoc_ascii 22