xref: /freebsd/contrib/one-true-awk/testdir/t.roff (revision af23369a6deaaeb612ab266eb88b8bb8d560c322)
1NF > 0	{
2	for (i = 1; i <= NF; i++) {
3		n = length($i)
4		if (n + olen >= 60) {
5			print oline
6			olen = n
7			oline = $i
8		} else {
9			oline = oline " " $i
10			olen += n
11		}
12	}
13}
14
15NF == 0 {
16	print oline
17	olen = 0
18}
19
20END {
21	if (olen > 0)
22		print oline
23}
24