summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwlemb <wlemb>2003-03-20 07:33:57 +0000
committerwlemb <wlemb>2003-03-20 07:33:57 +0000
commita1954fe307187dfefeb4a7cfc0fef4376c739f7d (patch)
treeaffb5e403dc1b07a3f755dd94898ffc8a3120a7d
parent27d4b8c8d4ca8f23c06c000d82b534b3a2fd9ab2 (diff)
downloadgroff-a1954fe307187dfefeb4a7cfc0fef4376c739f7d.tar.gz
* src/roff/troff/env.cc (vertical_spacing): Allow zero value for
`.vs'. * doc/groff.texinfo: Updated.
-rw-r--r--ChangeLog6
-rw-r--r--doc/groff.texinfo2
-rw-r--r--src/roff/troff/env.cc4
3 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 53877a17..a8d3ed40 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-03-20 Werner LEMBERG <wl@gnu.org>
+
+ * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
+ `.vs'.
+ * doc/groff.texinfo: Updated.
+
2003-03-19 Werner LEMBERG <wl@gnu.org>
* src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
diff --git a/doc/groff.texinfo b/doc/groff.texinfo
index 037646ec..99f7f59b 100644
--- a/doc/groff.texinfo
+++ b/doc/groff.texinfo
@@ -9525,7 +9525,7 @@ reset to the previous value before the last call to @code{vs}.
@cindex @code{.V} register, and @code{vs}
@code{gtroff} creates a warning of type @samp{range} if @var{space} is
-zero or negative; the vertical spacing is then set to the vertical
+negative; the vertical spacing is then set to the vertical
resolution (as given in the @code{.V} register).
The read-only number register @code{.v} contains the current vertical
diff --git a/src/roff/troff/env.cc b/src/roff/troff/env.cc
index 8a3d72f2..14d571d6 100644
--- a/src/roff/troff/env.cc
+++ b/src/roff/troff/env.cc
@@ -1321,8 +1321,8 @@ void vertical_spacing()
{
vunits temp;
if (has_arg() && get_vunits(&temp, 'p', curenv->vertical_spacing)) {
- if (temp <= V0) {
- warning(WARN_RANGE, "vertical spacing must be greater than 0");
+ if (temp < V0) {
+ warning(WARN_RANGE, "vertical spacing must not be negative");
temp = vresolution;
}
}