summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-03 06:37:40 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-03 06:37:40 +0000
commit0e8fae89ab921e1be06ee7285c5e919e386a1b26 (patch)
tree706478d26bc28e3e22dc7df91af93705441e5391 /lib
parent2a2626406427b38abf85b01bda2805fa381689b4 (diff)
* lib/rexml/text.rb: String no longer has #each.
Patch by Mitsutaka Mimura (takkanm). [ruby-dev:39949]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/rexml/text.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/text.rb b/lib/rexml/text.rb
index d09dc3ac54..f1e14e75fe 100644
--- a/lib/rexml/text.rb
+++ b/lib/rexml/text.rb
@@ -274,7 +274,7 @@ module REXML
def indent_text(string, level=1, style="\t", indentfirstline=true)
return string if level < 0
new_string = ''
- string.each { |line|
+ string.each_line { |line|
indent_string = style * level
new_line = (indent_string + line).sub(/[\s]+$/,'')
new_string << new_line