Skip to content

Commit c6fb7c1

Browse files
committed
eval_error.c: should not escapce newline and tab
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent e608402 commit c6fb7c1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

eval_error.c

+3
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ write_warnq(VALUE out, VALUE str, const char *ptr, long len)
8787
const long olen = len;
8888
for (; len > 0; --len, ++ptr) {
8989
unsigned char c = *ptr;
90+
switch (c) {
91+
case '\n': case '\t': continue;
92+
}
9093
if (rb_iscntrl(c)) {
9194
char buf[5];
9295
const char *cc = 0;

0 commit comments

Comments
 (0)