diff --git a/eval_error.c b/eval_error.c index edc8639705..b0ee0f45c9 100644 --- a/eval_error.c +++ b/eval_error.c @@ -87,6 +87,9 @@ write_warnq(VALUE out, VALUE str, const char *ptr, long len) const long olen = len; for (; len > 0; --len, ++ptr) { unsigned char c = *ptr; + switch (c) { + case '\n': case '\t': continue; + } if (rb_iscntrl(c)) { char buf[5]; const char *cc = 0;