summaryrefslogtreecommitdiffstats
path: root/roff.7
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-05-24 15:22:14 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-05-24 15:22:14 +0000
commitd5beaabedad767345a35912f5bd7cb796c6160f5 (patch)
treea9269625b7c9a96f28a979d7b124facf166abe65 /roff.7
parentfe48fc74f1ca4c34565410df711ceebd198fd253 (diff)
downloadmandoc-d5beaabedad767345a35912f5bd7cb796c6160f5.tar.gz
Have conditional closure for both text and macro lines call through to
ccond(). Fix the text handler to behave like the macro handler regarding escaped \}. Make \} actually become a zero-width space, too, and clean up the documentation in this regard.
Diffstat (limited to 'roff.7')
-rw-r--r--roff.719
1 files changed, 12 insertions, 7 deletions
diff --git a/roff.7 b/roff.7
index 9bd90444..58968836 100644
--- a/roff.7
+++ b/roff.7
@@ -448,15 +448,20 @@ than having the request or macro follow as
The scope of a conditional is always parsed, but only executed if the
conditional evaluates to true.
.Pp
-Note that text following an
-.Sq \&.\e}
-escape sequence is discarded.
-Furthermore, if an explicit closing sequence
+Note that the
.Sq \e}
-is specified in a free-form line, the entire line is accepted within the
-scope of the prior request, not only the text preceding the close, with the
+is converted into a zero-width escape sequence if not passed as a
+standalone macro
+.Sq \&.\e} .
+For example,
+.Pp
+.D1 \&.Fl a \e} b
+.Pp
+will result in
.Sq \e}
-collapsing into a zero-width space.
+being considered an argument of the
+.Sq \&Fl
+macro.
.Ss \&ig
Ignore input.
Its syntax can be either