develooper Front page | perl.pod-people | Postings from January 2012

Re: Fwd: [rt.cpan.org #74389] Pod::Simple::Pullparser get_titleshould ignore X<...>

Thread Previous | Thread Next
From:
Ricardo Signes
Date:
January 29, 2012 06:29
Subject:
Re: Fwd: [rt.cpan.org #74389] Pod::Simple::Pullparser get_titleshould ignore X<...>
Message ID:
20120129142917.GD7173@cancer.codesimply.com
* Marek Rouchal <marek.rouchal@gmx.net> [2012-01-29T03:05:50]
> I agree... the content of X<...> is not visible text, so for
> 
> =head1 NAME
> X<some text>
> 
> Pod::Simple should return "NAME" for the heading text, not
> "NAME some text"

And "NAME" and not "NAME "

It should probably not just become an empty string, but it should be collapse
whitespace around it, so pathological cases like:

=head1 NAME X<foo> THIS X<bar> TUNE
X<baz>

...should be "NAME THIS TUNE"

But in the simpler case, I think that "NAME" and not "NAME " is actually likely
to come up.

-- 
rjbs


Thread Previous | Thread Next


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