[前][次][番号順一覧][スレッド一覧]

ruby-changes:2085

From: ko1@a...
Date: 30 Sep 2007 11:53:05 +0900
Subject: [ruby-changes:2085] akr - Ruby:r13576 (trunk): * bootstraptest/runner.rb (pretty): don't show beginning empty line.

akr	2007-09-30 11:52:55 +0900 (Sun, 30 Sep 2007)

  New Revision: 13576

  Modified files:
    trunk/ChangeLog
    trunk/bootstraptest/runner.rb

  Log:
    * bootstraptest/runner.rb (pretty): don't show beginning empty line.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13576&r2=13575
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bootstraptest/runner.rb?r1=13576&r2=13575

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 13575)
+++ ChangeLog	(revision 13576)
@@ -1,3 +1,7 @@
+Sun Sep 30 11:52:11 2007  Tanaka Akira  <akr@f...>
+
+	* bootstraptest/runner.rb (pretty): don't show beginning empty line.
+
 Sun Sep 30 11:32:34 2007  Tanaka Akira  <akr@f...>
 
 	* numeric.c: use #ifdef for test LONG_LONG_VALUE.
Index: bootstraptest/runner.rb
===================================================================
--- bootstraptest/runner.rb	(revision 13575)
+++ bootstraptest/runner.rb	(revision 13576)
@@ -226,6 +226,7 @@
 end
 
 def pretty(src, desc, result)
+  src = src.sub(/\A.*\n/, '')
   (/\n/ =~ src ? "\n#{adjust_indent(src)}" : src) + "  #=> #{desc}"
 end
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧]