summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorwl <wl>2006-03-09 18:11:43 +0000
committerwl <wl>2006-03-09 18:11:43 +0000
commitd86d6936ff2c48a956b0442d2ac6bc133b10c6b2 (patch)
treeeee11115a453adbfbeb1ea373e1afa60aaab7c59 /src
parentbaa4a58309816424f3055771eae40fe7adccdd9d (diff)
downloadgroff-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.
Diffstat (limited to 'src')
-rw-r--r--src/devices/grops/ps.cpp21
1 files changed, 9 insertions, 12 deletions
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';