summaryrefslogtreecommitdiff
path: root/tool/generic_erb.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-06 14:54:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-06 14:54:39 +0000
commit1ae1164eb0587c8f4ad1ab44bc1467c689c53b6c (patch)
tree2ef787b09194cbbd7127fefbeadf4ef36ed8c7d7 /tool/generic_erb.rb
parent8f1b3a799f096750c1ec090b07be3c8afe79bdf3 (diff)
generic_erb.rb: explicit_trim_line
* tool/generic_erb.rb: enable explicit_trim_line mode git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/generic_erb.rb')
-rw-r--r--tool/generic_erb.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/generic_erb.rb b/tool/generic_erb.rb
index 8e5e44f..9e07f2f 100644
--- a/tool/generic_erb.rb
+++ b/tool/generic_erb.rb
@@ -20,7 +20,7 @@ opt = OptionParser.new do |o|
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