ruby-changes:44321
From: nobu <ko1@a...>
Date: Tue, 11 Oct 2016 22:21:35 +0900 (JST)
Subject: [ruby-changes:44321] nobu:r56394 (trunk): bootstraptest/runner.rb: first line in the source
nobu 2016-10-11 22:21:30 +0900 (Tue, 11 Oct 2016) New Revision: 56394 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56394 Log: bootstraptest/runner.rb: first line in the source * bootstraptest/runner.rb (pretty): remove empty line at the beginning only. Modified files: trunk/bootstraptest/runner.rb Index: bootstraptest/runner.rb =================================================================== --- bootstraptest/runner.rb (revision 56393) +++ bootstraptest/runner.rb (revision 56394) @@ -405,7 +405,7 @@ def flunk(message = '') https://github.com/ruby/ruby/blob/trunk/bootstraptest/runner.rb#L405 end def pretty(src, desc, result) - src = src.sub(/\A.*\n/, '') + src = src.sub(/\A[\s\t]*\n/, '') (/\n/ =~ src ? "\n#{adjust_indent(src)}" : src) + " #=> #{desc}" end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/