Make the output of fortunes.txt more readable and comment a couple of hacks/issues with .txt files.
This commit is contained in:
parent
e3fda1fce2
commit
3dde1e66ba
1 changed files with 3 additions and 1 deletions
|
|
@ -97,7 +97,9 @@ fn genbody {
|
|||
template.awk $body.tpl | rc $rcargs
|
||||
if not if ( test -f $body.txt ) {
|
||||
echo '<pre>'
|
||||
cat $body.txt |fmt -l 82 -j | sed 's/</\>/g; 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; s/>/\</g' |fmt -l 82 -j
|
||||
echo '</pre>'
|
||||
}
|
||||
if not if ( test -f $body.html )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue