diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-05-24 15:22:14 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-05-24 15:22:14 +0000 |
commit | d5beaabedad767345a35912f5bd7cb796c6160f5 (patch) | |
tree | a9269625b7c9a96f28a979d7b124facf166abe65 /roff.7 | |
parent | fe48fc74f1ca4c34565410df711ceebd198fd253 (diff) | |
download | mandoc-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.7 | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -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 |