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

ruby-changes:36223

From: nobu <ko1@a...>
Date: Thu, 6 Nov 2014 23:54:43 +0900 (JST)
Subject: [ruby-changes:36223] nobu:r48304 (trunk): generic_erb.rb: explicit_trim_line

nobu	2014-11-06 23:54:39 +0900 (Thu, 06 Nov 2014)

  New Revision: 48304

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48304

  Log:
    generic_erb.rb: explicit_trim_line
    
    * tool/generic_erb.rb: enable explicit_trim_line mode

  Modified files:
    trunk/tool/generic_erb.rb
Index: tool/generic_erb.rb
===================================================================
--- tool/generic_erb.rb	(revision 48303)
+++ tool/generic_erb.rb	(revision 48304)
@@ -20,7 +20,7 @@ opt = OptionParser.new do |o| https://github.com/ruby/ruby/blob/trunk/tool/generic_erb.rb#L20
   o.order!(ARGV)
 end
 template = ARGV.shift or abort opt.to_s
-erb = ERB.new(File.read(template), nil, '%')
+erb = ERB.new(File.read(template), nil, '%-')
 erb.filename = template
 result = source ? erb.src : erb.result
 if output

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

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