Entity-encode E<0xNNNN> and E<0NNN> correctly
authorAbhijit Menon-Sen <ams@toroid.org>
Fri, 4 Sep 2009 07:11:56 +0000 (12:11 +0530)
committerAbhijit Menon-Sen <ams@toroid.org>
Fri, 4 Sep 2009 07:11:56 +0000 (12:11 +0530)
commitbf6bfb44d9f2e07e4bd25b8eba2d9132fcec637e
treef624e00db3a6a24168d0b9747752efe8ca0c4341
parent821005df620220206ad90d589e3049bcfbf0b3db
Entity-encode E<0xNNNN> and E<0NNN> correctly

Fixes bug #68964 reported by samv, where pod2html encoded E<0x2070> to
&0x2070 and not &#x2070. perlpodspec says E<0x2070> should work, but the
code in Pod::Html accepted only E<x2070>. The new code accepts both, and
processes octal entities correctly as well.

Signed-off-by: Abhijit Menon-Sen <ams@toroid.org>
lib/Pod/Html.pm
lib/Pod/t/htmlescp.pod
lib/Pod/t/htmlescp.t