summaryrefslogtreecommitdiffstats
path: root/roff.7
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-06-14 14:02:39 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-06-14 14:02:39 +0000
commitf47c24ce5479036f4e05569d948d51dbebcb1f9d (patch)
treebd0d1c73aad4e3919635064f8a112b2b14ff9297 /roff.7
parent57f77c200a922cb0605b19e4b87d3c8931dd568a (diff)
downloadmandoc-f47c24ce5479036f4e05569d948d51dbebcb1f9d.tar.gz
implement the roff(7) d (macro or string defined) conditional
Diffstat (limited to 'roff.7')
-rw-r--r--roff.711
1 files changed, 9 insertions, 2 deletions
diff --git a/roff.7 b/roff.7
index 5905ce06..fdefb674 100644
--- a/roff.7
+++ b/roff.7
@@ -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