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

File: [cvsweb.bsd.lv] / mandoc / regress / roff / while / basic.out_ascii (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.

WHILE-BASIC(1)              General Commands Manual             WHILE-BASIC(1)

NNAAMMEE
     wwhhiillee--bbaassiicc - the while request

DDEESSCCRRIIPPTTIIOONN
     Loop with single-line scope: 10 9 8 7 6 5 4 3 2 1 0

     Loop with multi-line scope, text line closure: 10, 9, 8, 7, 6, 5, 4, 3,
     2, 1, 0, boom.

     Loop with multi-line scope, macro line closure: 10 9 8 7 6 5 4 3 2 1 0

     final text

OpenBSD                         August 24, 2018                        OpenBSD