xref: /openbsd-src/regress/usr.bin/mandoc/roff/while/basic.in (revision b7f92c5facc9c63232c7c76c88de8493b7d1ca0e)
1.\" $OpenBSD: basic.in,v 1.1 2018/08/24 22:56:37 schwarze Exp $
2.Dd $Mdocdate: August 24 2018 $
3.Dt WHILE-BASIC 1
4.Os
5.Sh NAME
6.Nm while-basic
7.Nd the while request
8.Sh DESCRIPTION
9Loop with single-line scope:
10.nr cnt 11 1
11.de mym
12\\n-[cnt]
13..
14.while \n[cnt] .mym
15.Pp
16Loop with multi-line scope, text line closure:
17.nr cnt 11
18.while \n[cnt] \{\
19.nr cnt -1
20\n[cnt]\},
21boom.
22.Pp
23Loop with multi-line scope, macro line closure:
24.nr cnt 11
25.while \n[cnt] \{\
26.nr cnt -1
27\n[cnt]
28.\}
29.Pp
30final text
31