summaryrefslogtreecommitdiffstatshomepage
path: root/roff.7
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2010-05-24 23:54:18 +0000
committerIngo Schwarze <schwarze@openbsd.org>2010-05-24 23:54:18 +0000
commit2aefdbffeeeeda1b600266dae034d7133292ad46 (patch)
tree6f3de305c81786d101b59487b38fec286bda3558 /roff.7
parentf33e9bc8a5b75be1fa9e13e0040f67f086caf19d (diff)
downloadmandoc-2aefdbffeeeeda1b600266dae034d7133292ad46.tar.gz
mandoc-2aefdbffeeeeda1b600266dae034d7133292ad46.tar.zst
mandoc-2aefdbffeeeeda1b600266dae034d7133292ad46.zip
recognize ".if n" as true;
nothing fancy yet, no negation, no grammer, just that one letter; from OpenBSD; "looks fine" kristaps@
Diffstat (limited to 'roff.7')
-rw-r--r--roff.714
1 files changed, 11 insertions, 3 deletions
diff --git a/roff.7 b/roff.7
index 64621c83..96152520 100644
--- a/roff.7
+++ b/roff.7
@@ -1,4 +1,4 @@
-.\" $Id: roff.7,v 1.6 2010/05/24 22:25:58 schwarze Exp $
+.\" $Id: roff.7,v 1.7 2010/05/24 23:54:18 schwarze Exp $
.\"
.\" Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
.\"
@@ -126,7 +126,15 @@ which may be separated by any intervening input (or not exist at all).
Its syntax is equivalent to
.Sx \&if .
.Ss \&if
-Begins a conditional that always evaluates to false.
+Begins a conditional.
+Right now, the conditional evaluates to true
+if and only if it starts with the letter
+.Sy n ,
+indicating processing in
+.Xr nroff 1
+style as opposed to
+.Xr troff 1
+style.
If a conditional is false, its children are not processed, but are
syntactically interpreted to preserve the integrity of the input
document.
@@ -249,7 +257,7 @@ Currently, it is ignored including its arguments,
and the number of arguments is not checked.
.Ss \&tr
Output character translation.
-This macro is intended to have one argument,
+This macro is intended to have one argument,
consisting of an even number of characters.
Currently, it is ignored including its arguments,
and the number of arguments is not checked.