aboutsummaryrefslogtreecommitdiffstats
path: root/eval_error.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval_error.c')
-rw-r--r--eval_error.c3
1 files changed, 3 insertions, 0 deletions
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;