diff --git a/bin/controller.rc b/bin/controller.rc index 2344ad9..2f1a30e 100755 --- a/bin/controller.rc +++ b/bin/controller.rc @@ -97,7 +97,9 @@ fn genbody { template.awk $body.tpl | rc $rcargs if not if ( test -f $body.txt ) { echo '
'
-        cat $body.txt |fmt -l 82 -j | sed 's//\</g'
+	# XXX Insering a blank line between lines in input is good for fortunes.txt, but probably not for other .txt files
+	# XXX Words are not broken, even if they are way beyond 82 chars long
+        cat $body.txt |sed 's/$/\n/g; s//\</g' |fmt -l 82 -j
         echo '
' } if not if ( test -f $body.html )