ruby-changes:4576
From: ko1@a...
Date: Fri, 18 Apr 2008 16:38:03 +0900 (JST)
Subject: [ruby-changes:4576] knu - Ruby:r16070 (ruby_1_8_7): * lib/rexml/node.rb (REXML::Node::indent): should initialize rv
knu 2008-04-18 16:37:32 +0900 (Fri, 18 Apr 2008)
New Revision: 16070
Modified files:
branches/ruby_1_8_7/ChangeLog
branches/ruby_1_8_7/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_7/ChangeLog?r1=16070&r2=16069&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_7/lib/rexml/node.rb?r1=16070&r2=16069&diff_format=u
Index: ruby_1_8_7/ChangeLog
===================================================================
--- ruby_1_8_7/ChangeLog (revision 16069)
+++ ruby_1_8_7/ChangeLog (revision 16070)
@@ -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_7/lib/rexml/node.rb
===================================================================
--- ruby_1_8_7/lib/rexml/node.rb (revision 16069)
+++ ruby_1_8_7/lib/rexml/node.rb (revision 16070)
@@ -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/