Correct inverted scape codes for > and < in .txt files

This commit is contained in:
uriel 2008-09-15 07:23:00 +02:00
parent b68c3a6042
commit 76e78f3bbd

View File

@ -144,7 +144,7 @@ fn txt_handler {
echo '<pre>'
# XXX Insering a blank line between lines in input is good for fortunes.txt, but maybe not for other .txt files
# XXX Words are not broken, even if they are way beyond 82 chars long
cat $1 |sed 's/$/\n/g; s/</\&gt;/g; s/>/\&lt;/g' |fmt -l 82 -j
cat $1 |sed 's/$/\n/g; s/</\&lt;/g; s/>/\&gt;/g' |fmt -l 82 -j
echo '</pre>'
}