Skip over =for ... perlpod construct (RhBug:477516)
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 15 Feb 2010 06:52:54 +0000 (08:52 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 15 Feb 2010 06:52:54 +0000 (08:52 +0200)
- patch from Ville Skyttä

scripts/perl.prov
scripts/perl.req

index 4d5bd81..deb8fc0 100755 (executable)
@@ -94,7 +94,7 @@ sub process_file {
     # properly belongs in the over/back section) but people do not
     # read the perldoc.
 
-    if (m/^=(head[1-4]|pod|item)/) {
+    if (m/^=(head[1-4]|pod|for|item)/) {
       $incomment = 1;
     }
 
index 07eed6b..587b3a5 100755 (executable)
@@ -112,7 +112,7 @@ sub process_file {
     # properly belongs in the over/back section) but people do not
     # read the perldoc.
 
-    if ( (m/^=(head[1-4]|pod|item)/) .. (m/^=(cut)/) ) {
+    if ( (m/^=(head[1-4]|pod|for|item)/) .. (m/^=(cut)/) ) {
       next;
     }