From d0855259a14f9d9b7c5dad47f51c70894d7539be Mon Sep 17 00:00:00 2001 From: Uriel Date: Wed, 18 Jun 2008 21:12:41 +0200 Subject: [PATCH] Make .txt actually work --- bin/controller.rc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/controller.rc b/bin/controller.rc index 5674544..2344ad9 100755 --- a/bin/controller.rc +++ b/bin/controller.rc @@ -95,10 +95,11 @@ fn genbody { } if not if ( test -f $body.tpl ) template.awk $body.tpl | rc $rcargs - if not if ( test -f $body.txt ) + if not if ( test -f $body.txt ) { echo '
'
-        cat $body.txt |fmt -j| sed 's/\/</'
+        cat $body.txt |fmt -l 82 -j | sed 's//\</g'
         echo '
' + } if not if ( test -f $body.html ) cat $body.html | /bin/sed '0,/<[Bb][Oo][Dd][Yy][^>]*>/d; /<\/[Bb][Oo][Dd][Yy]>/,$d' if not if (~ $body *.html && test -f $body )