[BACK]Return to into.in CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress / roff / while

File: [cvsweb.bsd.lv] / mandoc / regress / roff / while / into.in (download)

Revision 1.1, Fri Aug 24 23:12:35 2018 UTC (5 years, 9 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6, VERSION_1_14_5, HEAD

Rudimentary implementation of the roff(7) .while request.
Needed for example by groff_hdtbl(7).

There are two limitations:
It does not support nested .while requests yet,
and each .while loop must start and end in the same scope.

The roff_parseln() return codes are now more flexible
and allow OR'ing options.

.\" $OpenBSD: into.in,v 1.1 2018/08/24 22:56:37 schwarze Exp $
.Dd $Mdocdate: August 24 2018 $
.Dt WHILE-INTO 1
.Os
.Sh NAME
.Nm while-into
.Nd while request extending into a macro
.Sh DESCRIPTION
.nr cnt 10
.de closeloop
.nr cnt -1
.\}
..
initial text
.while \n[cnt] \{\
\n[cnt]
.closeloop
after macro
.\}
final text