Subject: | Problem handling paragraph separators - incompatibility with perlpodspec |
Hi,
Pod::POM 0.17 does not accept blank lines containing whitespace as paragraph separators, it only accepts blank lines containing no characters at all. According to perlpodspec, blank lines containing whitespace should be taken as paragraph separators.
For an example, compare the output of converting 'perlform.pod' to text using pod2text and pom2 text.
To fix this, replace line 176 of POM.pm
while ($text =~ /(?:(.*?)(\n{2,}))|(.+$)/sg) {
with
while ($text =~ /(?:(.*?)((?:\s*\n){2,}))|(.+$)/sg) {
Cheers,
JJ
--
JJ <jj@jonallen.info>
http://perl.jonallen.info :: http://perldoc.perl.org