1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rexml/node.rb (REXML::Node::indent): should initialize rv

variable.  a patch from Tadayoshi Funaba <tadf AT dotrb.org> in 
  [ruby-dev:32783].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2008-04-18 07:37:03 +00:00
parent 2f1fa7e402
commit e2e04c149c
2 changed files with 7 additions and 1 deletions

View file

@ -27,7 +27,7 @@ module REXML
unless indent.nil?
Kernel.warn( "#{self.class.name}.to_s(indent) parameter is deprecated" )
f = REXML::Formatters::Pretty.new( indent )
f.write( self, rv, indent )
f.write( self, rv = "" )
else
f = REXML::Formatters::Default.new
f.write( self, rv = "" )