diff options
author | wl <wl> | 2006-03-09 18:11:43 +0000 |
---|---|---|
committer | wl <wl> | 2006-03-09 18:11:43 +0000 |
commit | d86d6936ff2c48a956b0442d2ac6bc133b10c6b2 (patch) | |
tree | eee11115a453adbfbeb1ea373e1afa60aaab7c59 | |
parent | baa4a58309816424f3055771eae40fe7adccdd9d (diff) | |
download | groff-d86d6936ff2c48a956b0442d2ac6bc133b10c6b2.tar.gz |
* src/devices/grops/ps.cpp (ps_printer::do_exec, ps_printer::do_def,
ps_printer::do_mdef): Overlong lines now cause a warning message,
not an error.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/devices/grops/ps.cpp | 21 |
2 files changed, 15 insertions, 12 deletions
@@ -1,3 +1,9 @@ +2006-03-10 Werner LEMBERG <wl@gnu.org> + + * src/devices/grops/ps.cpp (ps_printer::do_exec, ps_printer::do_def, + ps_printer::do_mdef): Overlong lines now cause a warning message, + not an error. + 2006-03-09 Werner LEMBERG <wl@gnu.org> * font/devps/generate/make-zapfdr: New script for generating diff --git a/src/devices/grops/ps.cpp b/src/devices/grops/ps.cpp index f113ce61..c2307c7b 100644 --- a/src/devices/grops/ps.cpp +++ b/src/devices/grops/ps.cpp @@ -1591,10 +1591,9 @@ void ps_printer::do_exec(char *arg, const environment *env) error("missing argument to X exec command"); return; } - if (!check_line_lengths(arg)) { - error("lines in X exec command must not be more than 255 characters long"); - return; - } + if (!check_line_lengths(arg)) + warning("lines in X exec command must" + " not be more than 255 characters long"); out.put_fix_number(env->hpos) .put_fix_number(env->vpos) .put_symbol("EBEGIN") @@ -1641,10 +1640,9 @@ void ps_printer::do_def(char *arg, const environment *) flush_sbuf(); while (csspace(*arg)) arg++; - if (!check_line_lengths(arg)) { - error("lines in X def command must not be more than 255 characters long"); - return; - } + if (!check_line_lengths(arg)) + warning("lines in X def command must" + " not be more than 255 characters long"); defs += arg; if (*arg != '\0' && strchr(arg, '\0')[-1] != '\n') defs += '\n'; @@ -1669,10 +1667,9 @@ void ps_printer::do_mdef(char *arg, const environment *) arg = p; while (csspace(*arg)) arg++; - if (!check_line_lengths(arg)) { - error("lines in X mdef command must not be more than 255 characters long"); - return; - } + if (!check_line_lengths(arg)) + warning("lines in X mdef command must" + " not be more than 255 characters long"); defs += arg; if (*arg != '\0' && strchr(arg, '\0')[-1] != '\n') defs += '\n'; |