Skip Menu |

This queue is for tickets about the PodParser CPAN distribution.

Report information
The Basics
Id: 6188
Status: resolved
Priority: 0/
Queue: PodParser

People
Owner: Nobody in particular
Requestors: perl [...] jonallen.info
Cc: jj [...] jonallen.info
AdminCc:

Bug Information
Severity: Important
Broken in: 1.26
Fixed in: (no value)



Subject: Blank lines interpreted as verbatim paragraphs
CC: jj [...] jonallen.info
The current version of Parser.pm (1.14 from distribution 1.26) interprets a sequence of two or more consecutive blank lines as a verbatim paragraph (from perlpodspec, these paragraphs should start with a literal space or tab character). The attached patch changes the regex to search for indented text from /^\s+/ to /^[ \t]/. Regards, JJ
997c997 < elsif ($text =~ /^\s+/) { --- > elsif ($text =~ /^[ \t]/) {
RT-Send-CC: sburke [...] cpan.org
The suggested patch breaks several parts of the regression suite. I will not change that. One tiny argument in favor of this: Consecutive blank lines are an indication from the user that she wants some (verbatim!) space between the paragraphs. Not a good excuse, but better than nothing... "The" perlpodspec implementation is Pod::Simple, by the way. -Marek