diff options
author | wlemb <wlemb> | 2000-03-05 12:11:21 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2000-03-05 12:11:21 +0000 |
commit | 78abfdb9f81632d9667fd243ef80a038342fbabc (patch) | |
tree | 70e13e9441789acb7cdb232d54f953a6ea5f4b3e | |
parent | 00de52efe9be3dd059d8df6b5a41f793f12d140d (diff) | |
download | groff-78abfdb9f81632d9667fd243ef80a038342fbabc.tar.gz |
* div.cc (macro_diversion::output, top_level_diversion::output):
Fixing an incompatibility with original troff: x'0' updates the
.a register also. Thanks to <Andries.Brouwer@cwi.nl> for pointing
this out.
* doc/groff.texinfo: Document it.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | doc/groff.texinfo | 4 | ||||
-rw-r--r-- | src/roff/troff/div.cc | 6 |
3 files changed, 12 insertions, 6 deletions
@@ -1,3 +1,11 @@ +2000-03-05 Werner LEMBERG <wl@gnu.org> + + * div.cc (macro_diversion::output, top_level_diversion::output): + Fixing an incompatibility with original troff: \x'0' updates the + .a register also. Thanks to <Andries.Brouwer@cwi.nl> for pointing + this out. + * doc/groff.texinfo: Document it. + 2000-03-04 Werner LEMBERG <wl@gnu.org> * tmac/troffrc: Add tmac.lbp. diff --git a/doc/groff.texinfo b/doc/groff.texinfo index 429f9875..bf041710 100644 --- a/doc/groff.texinfo +++ b/doc/groff.texinfo @@ -2846,7 +2846,7 @@ escape will do this. The escape is given a numerical argument (like inserted below the current line. A negative number will add space above. If this escape is used multiple times on the same line, the maximum of the values is used. The @code{.a} number register contains -the most recent extra vertical line space. +the most recent (nonnegative) extra vertical line space. @c XXX @example @@ -4262,7 +4262,7 @@ name. This would be called as @example -.vl $Id: groff.texinfo,v 1.13 2000/02/29 22:09:32 wlemb Exp $ +.vl $Id: groff.texinfo,v 1.14 2000/03/05 12:11:22 wlemb Exp $ @end example @xref{Request Arguments}. diff --git a/src/roff/troff/div.cc b/src/roff/troff/div.cc index 7a40d808..013ea669 100644 --- a/src/roff/troff/div.cc +++ b/src/roff/troff/div.cc @@ -235,8 +235,7 @@ void macro_diversion::output(node *nd, int retain_size, mac->append(temp); } } - if (!v.post_extra.is_zero()) - last_post_line_extra_space = v.post_extra.to_units(); + last_post_line_extra_space = v.post_extra.to_units(); if (!retain_size) { v.pre = vs; v.post = post_vs; @@ -339,8 +338,7 @@ void top_level_diversion::output(node *nd, int retain_size, vertical_size v(vs, post_vs); for (node *tem = nd; tem != 0; tem = tem->next) tem->set_vertical_size(&v); - if (!v.post_extra.is_zero()) - last_post_line_extra_space = v.post_extra.to_units(); + last_post_line_extra_space = v.post_extra.to_units(); if (!retain_size) { v.pre = vs; v.post = post_vs; |