summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorwl <wl>2006-09-10 08:34:36 +0000
committerwl <wl>2006-09-10 08:34:36 +0000
commit94978e3def72718458b21ba9be9fd7f240545575 (patch)
tree2dc3de7c133acc31abea36c6b12564507abd64d7 /src
parented71946c66941b03020437471c7f3cbcc35382db (diff)
downloadgroff-94978e3def72718458b21ba9be9fd7f240545575.tar.gz
* src/roff/troff/input.cpp (read_size): Revert previous change
w.r.t. `\s-[-...]'. * doc/groff.texinfo (Fractional Size Types): Clarify syntax of \s.
Diffstat (limited to 'src')
-rw-r--r--src/roff/troff/input.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 2989f827..8e820902 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -4902,17 +4902,10 @@ static int read_size(int *x)
else {
token start(tok);
tok.next();
- // catch `\s-[-...]' and friends
c = tok.ch();
- if (c == '-' || c == '+') {
- if (inc) {
- error("two relative changes not allowed in \\s escape");
- return 0;
- }
- else {
- inc = c == '+' ? 1 : -1;
- tok.next();
- }
+ if (!inc && (c == '-' || c == '+')) {
+ inc = c == '+' ? 1 : -1;
+ tok.next();
}
if (!get_number(&val, 'z'))
return 0;