The .ns and .rs requests are now honoured not only in the top-level
commitbbaba4031779747f3c981e7eae2fa96bdcba4581
authorWerner LEMBERG <wl@gnu.org>
Mon, 7 May 2001 13:36:25 +0000 (7 13:36 +0000)
committerWerner LEMBERG <wl@gnu.org>
Mon, 7 May 2001 13:36:25 +0000 (7 13:36 +0000)
treeab582a3d216b14cedba524413b069e547911ca88
parent9fbd2866b6c9582e1d7a77b6ed928819aa43c892
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.
ChangeLog
NEWS
doc/groff.texinfo
man/groff.man
src/roff/troff/div.cc
src/roff/troff/div.h
src/roff/troff/troff.man