[poe-commits] extras/wiki index.cgi,1.5,1.6
Brought to you by:
rcaputo
From: <rc...@us...> - 2003-08-31 19:47:49
|
Update of /cvsroot/poe/extras/wiki In directory sc8-pr-cvs1:/tmp/cvs-serv14239 Modified Files: index.cgi Log Message: Have the paragraph text follow the color of the bullet it's under. Index: index.cgi =================================================================== RCS file: /cvsroot/poe/extras/wiki/index.cgi,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** index.cgi 31 Aug 2003 18:58:00 -0000 1.5 --- index.cgi 31 Aug 2003 19:47:45 -0000 1.6 *************** *** 1820,1823 **** --- 1820,1825 ---- my $level = 0; + my $last_color = "000000"; + while ($source =~ m/^(.*)$/mig) { my $line = $1; *************** *** 1846,1850 **** else { my $stuff = ":" x ($level + 1); ! push @outline, "$stuff$line"; } } --- 1848,1852 ---- else { my $stuff = ":" x ($level + 1); ! push @outline, "$stuff<font color='#$last_color'>$line"; } } *************** *** 1889,1893 **** } ! push @outline, "$stuff <font color='$color'>$line</font>"; next; } --- 1891,1896 ---- } ! $last_color = $color; ! push @outline, "$stuff <font color='\#$color'>$line</font>"; next; } *************** *** 1905,1908 **** --- 1908,1915 ---- } } + } + + foreach (@outline) { + s/\s*$/<\/font>\n/ if /^:/; } |