3 # Usage: hchangered oldfile newfile
5 # hchangered - crude tool to red-color changes in HTML text. Text is
6 # also underlined so it shows on monochrome printers.
8 # Bugs: does not red-color text inside tables. Fascist software may
9 # complain about tags being out of order.
11 diff -e $1 $2 |
(sed -n -e '
30 <font color="red"><u>[DELETED]</u></font>\
35 '; echo '1,$p') | ed
- $1 | perl
-e '
36 $buf = join("", <STDIN>);
37 $buf =~ s/pre>\s+<font/pre><font/g;
38 $buf =~ s/font>\s+<\/pre/font><\/pre/g;