diff options
author | wlemb <wlemb> | 2001-05-07 13:36:23 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2001-05-07 13:36:23 +0000 |
commit | b655be22360e0275e96d7307fc2b06c66ebbc6ee (patch) | |
tree | e919600932d6a29c9dd0750d4a9f8871fec444a2 /doc | |
parent | 2cb0df330838a0f76209415679eae40517857968 (diff) | |
download | groff-b655be22360e0275e96d7307fc2b06c66ebbc6ee.tar.gz |
The .ns and .rs requests are now honoured not only in the top-level
but in all diversions (similar to UNIX troff).
This change is based on a patch from Tadziu Hoffmann
<hoffmann@usm.uni-muenchen.de>.
* src/roff/troff/div.h (diversion): Add `no_space_mode' member.
(top_level_diversion): Remove `no_space_mode' member.
* src/roff/troff/div.cc (diversion::diversion,
top_level_diversion::top_level_diversion): Updated.
(macro_diversion::output): Reset `no_space_mode'.
(no_space, restore_spacing): Use `curdiv' unconditionally.
(space_request, blank_line): Check `curdiv->no_space_mode'.
(no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
`curdiv' unconditionally.
* NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
Updated.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/groff.texinfo | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/doc/groff.texinfo b/doc/groff.texinfo index dbcda089..c8965c78 100644 --- a/doc/groff.texinfo +++ b/doc/groff.texinfo @@ -4663,22 +4663,15 @@ by a page number (see @ref{Page Control}, for more information). This mode ends when actual text is output or the @code{rs} request is encountered. The read-only number register @code{.ns} is set to@w{ }1. -@cindex top-level diversion -@cindex diversion, top-level This request is useful for macros which want to avoid that subsequent macros inadvertently insert some vertical space before the text starts -(for example, to set up the first paragraph after a section header). It -has no effect if not called within the top-level diversion -(@pxref{Diversions}). +(for example, to set up the first paragraph after a section header). @c XXX xref @endDefreq -@cindex top-level diversion -@cindex diversion, top-level @Defreq {rs, } -Disable no-space mode. It has no effect if not called within the -top-level diversion (@pxref{Diversions}). +Disable no-space mode. @c XXX xref @endDefreq @@ -7410,7 +7403,7 @@ The @code{als} request can make a macro have more than one name. This would be called as @Example -.vl $Id: groff.texinfo,v 1.76 2001/05/05 14:25:55 wlemb Exp $ +.vl $Id: groff.texinfo,v 1.77 2001/05/07 13:36:24 wlemb Exp $ @endExample @endDefesc |