diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-04 04:12:06 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-04 04:12:06 +0000 |
commit | eaf840779373130f95f7bd459b3864c78c698e28 (patch) | |
tree | 8e5d24335846d9107601184fbf6d8c3491946bb4 /lib/Pod | |
parent | 0498d68d11b2deda84ef13402f715e4d86b5c7c2 (diff) | |
download | perl-eaf840779373130f95f7bd459b3864c78c698e28.tar.gz |
temporarily disable blank line warning from Pod::Parser until
it can be made optional
p4raw-id: //depot/perl@5506
Diffstat (limited to 'lib/Pod')
-rw-r--r-- | lib/Pod/Parser.pm | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/lib/Pod/Parser.pm b/lib/Pod/Parser.pm index 1abd690971..1bd440bbc4 100644 --- a/lib/Pod/Parser.pm +++ b/lib/Pod/Parser.pm @@ -1064,16 +1064,17 @@ sub parse_from_filehandle { next unless (($textline =~ /^(\s*)$/) && (length $paragraph)); ## Issue a warning about any non-empty blank lines - if (length($1) > 1 and ! $self->{_CUTTING}) { - my $errorsub = $self->errorsub(); - my $file = $self->input_file(); - $file = VMS::Filespec::unixify($file) if $^O eq 'VMS'; - my $errmsg = "*** WARNING: line containing nothing but whitespace". - " in paragraph at line $nlines in file $file\n"; - (ref $errorsub) and &{$errorsub}($errmsg) - or (defined $errorsub) and $self->$errorsub($errmsg) - or warn($errmsg); - } +# XXX avoid warning until Brad has a chance to make this optional --GSAR +# if (length($1) > 1 and ! $self->{_CUTTING}) { +# my $errorsub = $self->errorsub(); +# my $file = $self->input_file(); +# $file = VMS::Filespec::unixify($file) if $^O eq 'VMS'; +# my $errmsg = "*** WARNING: line containing nothing but whitespace". +# " in paragraph at line $nlines in file $file\n"; +# (ref $errorsub) and &{$errorsub}($errmsg) +# or (defined $errorsub) and $self->$errorsub($errmsg) +# or warn($errmsg); +# } ## Now process the paragraph parse_paragraph($self, $paragraph, ($nlines - $plines) + 1); |