# HG changeset patch # User Chris Cannam # Date 1302542226 -3600 # Node ID 4ad6499d7998ad08d478f722e311727e312bcb65 # Parent 0bc92382a86b3ab71d4cfb8751849f7d37e61dd4 Remove A element from around A-Z index letters; avoid spare blank line after comment lines in listing diff -r 0bc92382a86b -r 4ad6499d7998 extra/soundsoftware/matlab-docs.pl --- a/extra/soundsoftware/matlab-docs.pl Thu Apr 07 15:45:48 2011 +0100 +++ b/extra/soundsoftware/matlab-docs.pl Mon Apr 11 18:17:06 2011 +0100 @@ -856,7 +856,7 @@ # print " $_: @{$_}\n"; $numberofletter = $#{$_}+1; if ($numberofletter > 0) { - print IFILE "\n
\U$_\E\n"; + print IFILE "\n
\U$_\E\n"; $numberhalf = ($numberofletter + 1 - (($numberofletter+1) % 2))/2; if ($debug > 2) { print " $_: @{$_} \t $numberhalf \t $numberofletter\n"; } for($count = 0; $count < $numberhalf; $count++) { @@ -889,7 +889,7 @@ if ($debug > 1) { print " AZinforeach1: $name \t\t $hfilerelpath{$name} \t\t $dirnamerelpath{$LocalActDir}\n"; } if ($LocalGlobalLocal eq 'global') { $dirpath = $hfilerelpath{$name}; } else { $dirpath = ""; } if (! ($mfilename{$name} =~ /contents/i)) { - if ($firstone == 1) { print IFILE "\n
\U$_\E\n"; $firstone = 0; } + if ($firstone == 1) { print IFILE "\n
\U$_\E\n"; $firstone = 0; } print IFILE "$mfilename{$name}$apropos{$name}\n"; } } @@ -1307,7 +1307,7 @@ $_ = &SubstituteHTMLEntities($_); # check for comment in line and format with css em - s/(.*)%(.*)/$1%$2<\/em>/; + s/^(.*)%(.*?)([\s\r\n]+)$/$1%$2<\/em>$3/; # check/create cross references foreach $funname (@{'all'.$name}) {