ruby-changes:4575
From: ko1@a...
Date: Fri, 18 Apr 2008 16:37:49 +0900 (JST)
Subject: [ruby-changes:4575] knu - Ruby:r16069 (ruby_1_8): * lib/rexml/node.rb (REXML::Node::indent): should initialize rv
knu 2008-04-18 16:37:03 +0900 (Fri, 18 Apr 2008) New Revision: 16069 Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/lib/rexml/node.rb Log: * lib/rexml/node.rb (REXML::Node::indent): should initialize rv variable. a patch from Tadayoshi Funaba <tadf AT dotrb.org> in [ruby-dev:32783]. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=16069&r2=16068&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/lib/rexml/node.rb?r1=16069&r2=16068&diff_format=u Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 16068) +++ ruby_1_8/ChangeLog (revision 16069) @@ -1,3 +1,9 @@ +Fri Apr 18 16:36:16 2008 Akinori MUSHA <knu@i...> + + * lib/rexml/node.rb (REXML::Node::indent): should initialize rv + variable. a patch from Tadayoshi Funaba <tadf AT dotrb.org> in + [ruby-dev:32783]. + Fri Apr 18 16:01:37 2008 Akinori MUSHA <knu@i...> * lib/rexml: Merge fixes since 1.8.6 made solely on the ruby_1_8_6 Index: ruby_1_8/lib/rexml/node.rb =================================================================== --- ruby_1_8/lib/rexml/node.rb (revision 16068) +++ ruby_1_8/lib/rexml/node.rb (revision 16069) @@ -27,7 +27,7 @@ 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 = "" ) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/