aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/roff/while/basic.out_ascii
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-08-24 23:12:33 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-08-24 23:12:33 +0000
commit0a8809aa2eea4b189b4ca02bea4883d7cf4ce706 (patch)
treef5873399a1c32c229c8d1eb66107998741a4015a /regress/roff/while/basic.out_ascii
parent562feda136881753a6d27350397fddcabed5f805 (diff)
downloadmandoc-0a8809aa2eea4b189b4ca02bea4883d7cf4ce706.tar.gz
mandoc-0a8809aa2eea4b189b4ca02bea4883d7cf4ce706.tar.zst
mandoc-0a8809aa2eea4b189b4ca02bea4883d7cf4ce706.zip
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.
Diffstat (limited to 'regress/roff/while/basic.out_ascii')
-rw-r--r--regress/roff/while/basic.out_ascii16
1 files changed, 16 insertions, 0 deletions
diff --git a/regress/roff/while/basic.out_ascii b/regress/roff/while/basic.out_ascii
new file mode 100644
index 00000000..920a9d28
--- /dev/null
+++ b/regress/roff/while/basic.out_ascii
@@ -0,0 +1,16 @@
+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