]> git.ipfire.org Git - thirdparty/systemd.git/commit
man: handle leading/trailing/repeating whitespaces in anchor links
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 23 Oct 2025 13:30:52 +0000 (15:30 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 23 Oct 2025 13:42:28 +0000 (15:42 +0200)
commit7168535165282772b0a1de56ba3c8fbf506fbe95
treed65233a3de2c4ffffd2cfbc786cef3da7c767ef0
parentc05758663b162c64da4729944023dec8cf684c75
man: handle leading/trailing/repeating whitespaces in anchor links

So even if a <term> section contains newlines, we get a reasonable
anchor link to it.

Before:
<dt id="
  bind
  UNIT
  PATH
  [PATH]
"><span class="term">
...
<a class="headerlink" title="Permalink to this term" href="#%0A%20%20%20%20%20%20%20%20%20%20%20%20bind%0A%20%20%20%20%20%20%20%20%20%20%20%20UNIT%0A%20%20%20%20%20%20%20%20%20%20%20%20PATH%0A%20%20%20%20%20%20%20%20%20%20%20%20[PATH]%0A%20%20%20%20%20%20%20%20%20%20">¶</a>

After:
<dt id="bind UNIT PATH [PATH]"><span class="term">
...
<a class="headerlink" title="Permalink to this term" href="#bind%20UNIT%20PATH%20[PATH]">¶</a>

Resolves: #39196
man/custom-html.xsl