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 | 141881c887ec609a42b6025503a0082ee59cced0 (patch) | |
tree | 769552e2a43c2d4e8d362fa4ad1d4a349980c8a1 /regress/roff/cond/string.in | |
parent | d7510635200bec5516c0a2f66d8a4fe42b453020 (diff) | |
download | mandoc-141881c887ec609a42b6025503a0082ee59cced0.tar.gz mandoc-141881c887ec609a42b6025503a0082ee59cced0.tar.zst mandoc-141881c887ec609a42b6025503a0082ee59cced0.zip |
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 |