diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-14 14:02:39 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-14 14:02:39 +0000 |
commit | f47c24ce5479036f4e05569d948d51dbebcb1f9d (patch) | |
tree | bd0d1c73aad4e3919635064f8a112b2b14ff9297 /regress/roff/cond/string.in | |
parent | 57f77c200a922cb0605b19e4b87d3c8931dd568a (diff) | |
download | mandoc-f47c24ce5479036f4e05569d948d51dbebcb1f9d.tar.gz |
implement the roff(7) d (macro or string defined) conditional
Diffstat (limited to 'regress/roff/cond/string.in')
-rw-r--r-- | regress/roff/cond/string.in | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/regress/roff/cond/string.in b/regress/roff/cond/string.in new file mode 100644 index 00000000..6d19f4ce --- /dev/null +++ b/regress/roff/cond/string.in @@ -0,0 +1,29 @@ +.TH STRING 1 "June 14, 2017" OpenBSD +.SH NAME +string \- conditional testing whether a string is defined +.SH DESCRIPTION +.ie d mystr OOPS +.el mystr not yet defined +.br +.ds mystr mystrval +.ie d mystr now defined +.el OOPS +.if !d mystr OOPS +.PP +.ie d mymac OOPS +.el mymac not yet defined +.br +.de mymac +mymacval +.. +.ie dmymac now defined +.el OOPS +.if !d mymac OOPS +.PP +.ie d myren OOPS +.el myren not yet defined +.br +.rn SM myren +.ie d myren now defined +.el OOPS +.if !d myren OOPS |