From d86d6936ff2c48a956b0442d2ac6bc133b10c6b2 Mon Sep 17 00:00:00 2001 From: wl Date: Thu, 9 Mar 2006 18:11:43 +0000 Subject: * 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. --- ChangeLog | 6 ++++++ src/devices/grops/ps.cpp | 21 +++++++++------------ 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index e9d797c8..8d209645 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-03-10 Werner LEMBERG + + * 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 * 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'; -- cgit v1.2.1