[BACK]Return to if.in CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress / roff / cond

File: [cvsweb.bsd.lv] / mandoc / regress / roff / cond / if.in (download)

Revision 1.2, Tue Jul 4 15:26:31 2017 UTC (6 years, 11 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6, VERSION_1_14_5, VERSION_1_14_4, VERSION_1_14_3, VERSION_1_14_2, HEAD
Changes since 1.1: +2 -1 lines

Messages of the -Wbase level now print STYLE:.  Since this
causes horrible churn anyway, profit of the opportunity to stop
excessive testing, such that this is hopefully the last instance
of such churn.  Consistently use OpenBSD RCS tags, blank .Os,
blank fourth .TH argument, and Mdocdate like everywhere else.
Use -Ios=OpenBSD for platform-independent predictable output.

.\" $OpenBSD: if.in,v 1.8 2017/07/04 14:53:26 schwarze Exp $
.TH IF 1 "June 27, 2015"
.SH NAME
if \- the roff conditional instruction
.SH DESCRIPTION
.if n One-line true condition.
.if t One-line false condition.
.if n
Next-line empty true condition.
.if t
Next-line empty false condition.
.br
False condition with whitespace:
.br
.if t 
True condition with whitespace:
.if n 
.if n \{One-line true cond\}ition with block.
.if t \{One-line false cond\}ition with block.
.br
.if n \{  One-line true cond\}ition with block with leading blanks.
.if t \{  One-line false cond\}ition with block with leading blanks.
.br
.if n \{Two-line true condition
without cont\}inuation and macros.
.if t \{Two-line false condition
without cont\}inuation and macros.
.br
.if n \{Two-line true condition
.B without cont\}inuation but with macros.
.if t \{Two-line false condition
.B without cont\}inuation but with macros.
.br
.if n \{\
Two-line true condition
with continuation and macros.
.\}This will not be printed.
.if t \{\
Two-line false condition
with continuation and macros.
.\}This will not be printed.
.br
.if n \{
Two-line true condition with blank line.\}
.if t \{
Two-line false condition with blank line.\}
.br
.if n \{Outer true condition.
.br
.if n Inner one-line true condition.
.if t Inner one-line false condition.
.br
.if n \{Inner two-line true condition
without continuation and macros.\}
.if t \{Inner two-line false condition
without continuation and macros.\}
.br
Back to the outer true condition.\}
.br
.if t \{Outer false condition.
.br
.if n Inner one-line true condition.
.if t Inner one-line false condition.
.br
.if n \{Inner two-line true condition
without continuation and macros.\}
.if t \{Inner two-line false condition
without continuation and macros.\}
.br
Back to the outer false condition.\}
.br
.if n \{Outer true condition.
.if t \{Inner false condition.
inner\}middle\}end
After conditional.
.br
.if n \{Outer true condition.
.if t \{Inner false condition.
.\}middle\}end
After conditional.
.br
.if n \{Outer true condition.
.if n \{Inner true condition.
.\}middle\}end
After conditional.
.br
.if n \{Outer true condition.
.if t \{Inner false condition.
.B\}middle\}end
After conditional.
.br
Backslash-backslash-brace in text:
.if t \{This text is not printed.\\}
This neither.\}
On a macro line:
.if t \{.B This text\\} is not printed.
.B This\} neither.
End.