pod2html in perl-5.15.9 recognizes POD markup in verbatim sections

[email protected] (Gisle Aas)
Newsgroups perl.pod-people,perl.perl5.porters
Message-ID <[email protected]>
pod2html in perl-5.15.9 uses Pod::Simple::XHTML to do its work; and Pod::Simple::XHTML is different than other POD formatters in that it enables 'codes_in_verbatim' feature of Pod::Simple.  This makes POD like this:

> =head1 TEXT
> 
>   $a++ B<if> $a < 10;
> 
> more text here.

turn into (you get a bolded if-keyword):

> <h1 id="TEXT">TEXT</h1>
> 
> <pre><code>  $a++ <b>if</b> $a &lt; 10;</code></pre>
> 
> <p>more text here.</p>

while pod2text just outputs:

> TEXT
>       $a++ B<if> $a < 10;
> 
>     more text here.

I don't like this inconsistency.  I believe this "feature" should simply be turned off.  This is a patch to do that:

   https://github.com/gisle/pod-simple/commit/846241382485e039ad3802af81c8c1e87afe1ac9

Any objections?

--Gisle
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.