]> git.proxmox.com Git - mirror_ovs.git/commit
dist-docs: Fix bugs in text to HTML conversion.
authorBen Pfaff <blp@ovn.org>
Fri, 10 May 2019 22:02:43 +0000 (15:02 -0700)
committerBen Pfaff <blp@ovn.org>
Mon, 8 Jul 2019 21:59:18 +0000 (14:59 -0700)
commitcfc06fb13d9c81bc138219ec2b1486090fa76c2f
tree343b5d03015cbea3b45b3e9bf4fe827bca649adf
parenta6ee09882283426553e1a475e8b396af9bb378d0
dist-docs: Fix bugs in text to HTML conversion.

This fixes two bugs.  First, & has a special meaning in the replacement
text for a sed "s" command, so this escapes it.  Second, this code
misprocessed bold or underlined &<>: >^H> would become &gt;^H&gt; which
would display as &gt&gt; in most browers.

Finally, this improves the HTML output so that bold ABC becomes <b>ABC</b>
instead of <b>A</b><b>B</b><b>C</b>.

Reported-by: Nicolas Bouliane <nbouliane@digitalocean.com>
Reported-at: https://twitter.com/nicboul/status/1126959264772259842
Signed-off-by: Ben Pfaff <blp@ovn.org>
build-aux/dist-docs