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