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 | a0590dbedd34ee38d8cf6a83bc5846668e0c29fd (patch) | |
tree | 3bdda48fe324d5088b4e5aba01c1b06565e082dd /roff.7 | |
parent | 99de3aa8f6c69f02b989060a0aa3ce3559333dd1 (diff) | |
download | mandoc-a0590dbedd34ee38d8cf6a83bc5846668e0c29fd.tar.gz mandoc-a0590dbedd34ee38d8cf6a83bc5846668e0c29fd.tar.zst mandoc-a0590dbedd34ee38d8cf6a83bc5846668e0c29fd.zip |
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 | 23 |
1 files changed, 14 insertions, 9 deletions
@@ -1,4 +1,4 @@ -.\" $Id: roff.7,v 1.28 2011/04/30 10:18:25 kristaps Exp $ +.\" $Id: roff.7,v 1.29 2011/05/24 15:22:14 kristaps Exp $ .\" .\" Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv> .\" Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org> @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: April 30 2011 $ +.Dd $Mdocdate: May 24 2011 $ .Dt ROFF 7 .Os .Sh NAME @@ -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 |