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