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

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

Revision 1.2, Mon Apr 20 13:07:27 2020 UTC (4 years, 1 month ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6, HEAD
Changes since 1.1: +2 -2 lines

In fragment identifiers, use ~%d for ordinal suffixes,
and reserve the character '~' for that purpose.

Bug found by validator.w3.org in openssl(1), which contains both a
tag "tls1_2" and a second instance of a tag "tls1", which also resulted
in "tls1_2", causing a clash.  Now, the second instance of "tls1" is
rendered as "tls1~2" instead, employing the newly reserved '~'.

<p class="Pp">regular text</p>
<div class="Bd Pp
  Bd-indent" id="outer"><a class="permalink" href="#outer">outer</a> text
  (default indent)
<div class="Bd Pp
  Bd-indent" id="inner"><a class="permalink" href="#inner">inner</a> text
  (default indent)</div>
outer text</div>
regular text
<div class="Bd Pp
  Bd-indent" id="outer~2"><a class="permalink" href="#outer~2">outer</a> text
  (4n)
<div class="Bd Pp
  Bd-indent" id="inner~2"><a class="permalink" href="#inner~2">inner</a> text
  (2n)</div>
outer text
<dl class="Bl-tag">
  <dt>tag</dt>
  <dd>text</dd>
</dl>
outer text</div>
regular text
<dl class="Bl-tag">
  <dt>tag</dt>
  <dd>outer text
    <div class="Bd Pp Bd-indent">inner text (2n)</div>
    outer text</dd>
</dl>