\n" unless $blanklines; $blanklines++; } else { $blanklines=0; } if( /^[-=\s]+$/ ) { print "
\n", "
\n"; $descdone = 0; CONTRIBS: while (
) { &do_line; last CONTRIBS if /^See Also/; last CONTRIBS if /^Anthony Thyssen/; last CONTRIBS if $blankline >= 2; # abort on a double blank line next CONTRIBS if /^$/; # no blank lines in ouput block if ( /^ / ) { print $descdone ? ' ' : ' - '; $descdone = 1; } elsif ( /^ / ) { print "
- "; $descdone = 0; } print $_, "\n"; }; print "
\n"; $blanklines=1; redo MAINLOOP; } if ( /^See Also/ ) { print " See Also: \n", "
\n"; SEEALSO: while (
) { &do_line; last SEEALSO if /^Specific Contribs/; last SEEALSO if /^Anthony Thyssen/; last SEEALSO if $blankline >= 2; # abort on a double blank line next SEEALSO if /^$/; # no blank lines in ouput block if ( /^ / ) { print "$_
\n"; } elsif ( /^ / ) { s/^\s+//; local($dir,@desc) = split; print "\n"; printf "%-25s %s
\n", " $dir", "@desc"; } else { print "\n$_
\n" } } print "
\n"; $blanklines=1; redo MAINLOOP; } print $_, "\n"; # normal line } # # finish up # print $append;