diff options
author | wl <wl> | 2006-09-10 08:34:36 +0000 |
---|---|---|
committer | wl <wl> | 2006-09-10 08:34:36 +0000 |
commit | 94978e3def72718458b21ba9be9fd7f240545575 (patch) | |
tree | 2dc3de7c133acc31abea36c6b12564507abd64d7 /src | |
parent | ed71946c66941b03020437471c7f3cbcc35382db (diff) | |
download | groff-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.cpp | 13 |
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; |