xref: /freebsd/contrib/one-true-awk/testdir/t.roff (revision 77013d11e6483b970af25e13c9b892075742f7e5)
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