Correct inverted scape codes for > and < in .txt files
This commit is contained in:
parent
b68c3a6042
commit
76e78f3bbd
@ -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/</\>/g; s/>/\</g' |fmt -l 82 -j
|
||||
cat $1 |sed 's/$/\n/g; s/</\</g; s/>/\>/g' |fmt -l 82 -j
|
||||
echo '</pre>'
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user