From: Rob H. <for...@us...> - 2002-01-22 08:29:06
|
Update of /cvsroot/sandweb/sandweb/lib/SandWeb In directory usw-pr-cvs1:/tmp/cvs-serv4080 Modified Files: Diff.pm Log Message: red for removed, green for added, blue for none Index: Diff.pm =================================================================== RCS file: /cvsroot/sandweb/sandweb/lib/SandWeb/Diff.pm,v retrieving revision 1.3 retrieving revision 1.4 diff -U2 -r1.3 -r1.4 --- Diff.pm 2002/01/22 08:25:44 1.3 +++ Diff.pm 2002/01/22 08:29:04 1.4 @@ -31,5 +31,5 @@ $newline =~ s/^\s+//; - if ( $newline =~ '^\+' ) { + if ( $newline =~ '^\-' ) { push ( @content, "\<font color=\"red\"\>" ); push ( @content, "$line\n" ); @@ -37,5 +37,5 @@ $current_state = "added"; } - elsif ( $newline =~ '^\-' ) { + elsif ( $newline =~ '^\+' ) { push ( @content, "\<font color=\"green\"\>" ); push ( @content, "$line\n" ); |