[BACK]Return to tag.out_html CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress / mdoc / Cm

File: [cvsweb.bsd.lv] / mandoc / regress / mdoc / Cm / tag.out_html (download)

Revision 1.4, Fri Nov 24 05:02:19 2023 UTC (6 months, 1 week ago) by schwarze
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines

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@.

<dl class="Bl-tag">
  <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 id="three"><a class="permalink" href="#three"><code class="Cm">three</code></a></dt>
  <dd>text</dd>
  <dt id="hyphen"><a class="permalink" href="#hyphen"><code class="Cm">-hyphen</code></a></dt>
  <dd>text</dd>
  <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>
</dl>
<a class="permalink" href="#four"><code class="Cm" id="four">four</code></a>