зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
2a26264064
Коммит
0e8fae89ab
|
@ -1,3 +1,8 @@
|
|||
Sun Jan 3 15:34:19 2010 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||
|
||||
* lib/rexml/text.rb: String no longer has #each.
|
||||
Patch by Mitsutaka Mimura (takkanm). [ruby-dev:39949].
|
||||
|
||||
Sun Jan 3 01:29:18 2010 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/resolv.rb (Resolv::DNS::Message::MessageDecoder#inspect):
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче