ruby-changes:2595
From: ko1@a...
Date: 2 Dec 2007 22:43:59 +0900
Subject: [ruby-changes:2595] nobu - Ruby:r14086 (ruby_1_8): * eval.c (error_print): put newline unless multiple line message ends
nobu 2007-12-02 22:43:47 +0900 (Sun, 02 Dec 2007) New Revision: 14086 Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/eval.c Log: * eval.c (error_print): put newline unless multiple line message ends with a newline. [ruby-dev:32429] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=14086&r2=14085 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/eval.c?r1=14086&r2=14085 Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 14085) +++ ruby_1_8/ChangeLog (revision 14086) @@ -1,3 +1,8 @@ +Sun Dec 2 22:43:45 2007 Nobuyoshi Nakada <nobu@r...> + + * eval.c (error_print): put newline unless multiple line message ends + with a newline. [ruby-dev:32429] + Sun Dec 2 15:49:20 2007 Kouhei Sutou <kou@c...> * lib/rss/rss.rb, test/rss/test_version.rb, NEWS: 0.2.1 -> 0.2.2. Index: ruby_1_8/eval.c =================================================================== --- ruby_1_8/eval.c (revision 14085) +++ ruby_1_8/eval.c (revision 14086) @@ -1298,8 +1298,9 @@ 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); } } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml