On Wed, Jan 25, 2012 at 07:03:26PM -0800, David E. Wheeler wrote:
> On Jan 25, 2012, at 6:00 PM, Ricardo Signes wrote:
> 
> >>> =head1 NAME
> >>> X<Some entry>
> >>> 
> >>> Pod::Simple::Pullparser get_title expands 'Some entry' in the title.  It
> >>> seems to me that it should not, and instead should replace it with an 
> >>> empty string.  This  behaviour is also hinted in the pod documentation.
> > 
> > It becomes <h1>NAME Some Entry</h1>?  That would certainly be an error.
> 
> No, it doesn't. Text:
> 
> > air ~> perl -MPod::Simple::Text -E 
> > 'Pod::Simple::Text->filter(\"=pod\n\n=head1 NAME\nX<Some entry>")'   
> > NAME 


> XHTML:

> > <h1 id="NAME">NAME </h1>
                  ^^^^^

That space should not be there.


> HTML:
> 
> > air ~> perl -MPod::Simple::HTML -E 
> > 'Pod::Simple::HTML->filter(\"=pod\n\n=head1 NAME\nX<Some entry>")' 
> > <html><head><title>NAME Some entry</title>
                       ^^^^^^^^^^^^^^^

Here it did become "NAME Some entry", which is wrong.

> > <h1><a class='u' href='#___top' title='click to go to top of document'
> > name="NAME"
> > >NAME <!--
     ^^^^^

That space also should not be there.

Ronald

Reply via email to