From f47c24ce5479036f4e05569d948d51dbebcb1f9d Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 14 Jun 2017 14:02:39 +0000 Subject: implement the roff(7) d (macro or string defined) conditional --- regress/roff/cond/string.in | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 regress/roff/cond/string.in (limited to 'regress/roff/cond/string.in') 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 -- cgit