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 /roff.7 | |
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 'roff.7')
-rw-r--r-- | roff.7 | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -1,4 +1,4 @@ -.\" $Id: roff.7,v 1.89 2017/06/14 13:00:31 schwarze Exp $ +.\" $Id: roff.7,v 1.90 2017/06/14 14:02:39 schwarze Exp $ .\" .\" Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> .\" Copyright (c) 2010,2011,2013-2015,2017 Ingo Schwarze <schwarze@openbsd.org> @@ -1045,8 +1045,6 @@ If the first character of is .Sq c .Pq character available , -.Sq d -.Pq string defined , .Sq e .Pq even page , .Sq t @@ -1059,6 +1057,15 @@ it evaluates to false. If the first character of .Ar condition is +.Sq d , +it evaluates to true if the rest of +.Ar condition +is the name of an existing user defined macro or string; +otherwise, it evaluates to false. +.It +If the first character of +.Ar condition +is .Sq r , it evaluates to true if the rest of .Ar condition |