[ovs-git] [openvswitch/ovs] cfc06f: dist-docs: Fix bugs in text to HTML conversion.

Ben Pfaff noreply at github.com
Mon Jul 8 22:01:01 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: cfc06fb13d9c81bc138219ec2b1486090fa76c2f
      https://github.com/openvswitch/ovs/commit/cfc06fb13d9c81bc138219ec2b1486090fa76c2f
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2019-07-08 (Mon, 08 Jul 2019)

  Changed paths:
    M build-aux/dist-docs

  Log Message:
  -----------
  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 at digitalocean.com>
Reported-at: https://twitter.com/nicboul/status/1126959264772259842
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list