X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FPod%2FParseUtils.pm;h=db615a57c476d620ab1d2b45828c01e9e4f0549e;hb=be0036e4fe8f594c35442537fa361e9306bb2431;hp=6703a7fbc86c994cf9eeaec0ba5e485ae7e8d516;hpb=92e3d63aacb66085fea74c3f951f09e136337b97;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/Pod/ParseUtils.pm b/lib/Pod/ParseUtils.pm index 6703a7f..db615a5 100644 --- a/lib/Pod/ParseUtils.pm +++ b/lib/Pod/ParseUtils.pm @@ -274,7 +274,7 @@ sub initialize { This method can be used to (re)parse a (new) hyperlink, i.e. the contents of a C...E> sequence. The result is stored in the current object. Warnings are stored in the B property. -E.g. sections like Copen(2)E> are deprected, as they do not point +E.g. sections like Copen(2)E> are deprecated, as they do not point to Perl documents. CDBI::foo(3p)E> is wrong as well, the manpage section can simply be dropped. @@ -289,9 +289,8 @@ sub parse { $self->{_warnings} = []; # collapse newlines with whitespace - if(s/\s*\n+\s*/ /g) { - $self->warning("collapsing newlines to blanks"); - } + s/\s*\n+\s*/ /g; + # strip leading/trailing whitespace if(s/^[\s\n]+//) { $self->warning("ignoring leading whitespace in link");