develooper Front page | perl.perl5.porters | Postings from November 2011

[perl #99096] Pod::Html does not handle all multi-angle interior sequences correctly

From:
Father Chrysostomos via RT
Date:
November 26, 2011 19:47
Subject:
[perl #99096] Pod::Html does not handle all multi-angle interior sequences correctly
Message ID:
rt-3.6.HEAD-5084-1322365632-1611.99096-15-0@perl.org
On Wed Sep 14 05:00:20 2011, jeschmid wrote:
> This is a bug report for perl from jens.schmidt35@arcor.de,
> generated with the help of perlbug 1.39 running under perl 5.12.2.
> 
> 
> -----------------------------------------------------------------
> [Please describe your issue here]
> 
> Consider the following pod snippet, where the interior sequence starts
> with a
> newline:
> 
> =pod
> 
> foo C<<
> <bar> >>
> 
> =cut
> 
> When run through pod2html, this results in the following paragraph:
> 
> <p>foo <code>&lt;
> &lt;bar</code> &gt;&gt;</p>
> 
> When I replace the regular expression "[^\S\n]" in Pod::Html by a
> simple "\s",
> the result looks as expected:
> 
> <p>foo <code>&lt;bar&gt;</code></p>
> 
> Not sure why an IS must not start with a newline after the opening
> angles.
> This is very inconvenient since your favorite text editor may place a
> newline
> immediately after the opening angels when reformatting paragraphs.


This was fixed by the Pod::Html changes merged in with commit cfe287a06b.

-- 

Father Chrysostomos




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About