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