ref: dc4cb44f09bcf980e5734c1d9a99885595447dc6
parent: 90de769838b0be5721b5d504ad516818292dc855
author: uriel <uriel@suckless.org>
date: Mon Sep 15 03:23:00 EDT 2008
Correct inverted scape codes for > and < in .txt files
--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -144,7 +144,7 @@
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>'
}