diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-07 19:58:35 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-07 19:58:35 +0000 |
commit | 0b9586c4f55cf7c917b0595a01314d3c2ec90783 (patch) | |
tree | 6e6402da193ca558139ae9d536c47973f9cfee48 /eval.c | |
parent | 77b1b6875d9ef772625c1529b7f8f8d045039b41 (diff) |
merge revision(s) 14086:
* eval.c (error_print): put newline unless multiple line message ends
with a newline. [ruby-dev:32429]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1298,8 +1298,9 @@ error_print() warn_print2(RSTRING(epath)->ptr, RSTRING(epath)->len); warn_print(")\n"); } - if (tail) { + if (tail && elen>len+1) { warn_print2(tail, elen-len-1); + if (einfo[elen-1] != '\n') warn_print2("\n", 1); } } } |