X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=maint%2Fsynopsis-extractor;h=ecafe6771c26250f690b4cb3978bcc61f27144d8;hb=a7643d601cc39d5bc5a6b5c9cf9c4b15a3140f1a;hp=21980b4d9d86e778593d1446ca2f5c27af6f34b2;hpb=dac431fabb4a29cd9ea0b86c4331815cffcfb99d;p=catagits%2FHTML-Zoom.git diff --git a/maint/synopsis-extractor b/maint/synopsis-extractor index 21980b4..ecafe67 100755 --- a/maint/synopsis-extractor +++ b/maint/synopsis-extractor @@ -16,9 +16,9 @@ sub extract_synopsis { my $head_or_cut = qr[head|cut]x; if($string=~m/^=head1 SYNOPSIS\n(.*?)^=$head_or_cut/sm) { my $extracted = $1; - $extracted=~s/^\S.+?$//m; # wipe out non code lines in pod my $begin_end = qr[begin|end]x; $extracted=~s/\n^=$begin_end testinfo\n\n//smg; # remove test block + $extracted=~s/^\S.+?$//smg; # wipe out non code lines in pod return $extracted; } else { return;