ruby-changes:13612
From: marcandre <ko1@a...>
Date: Mon, 19 Oct 2009 05:54:45 +0900 (JST)
Subject: [ruby-changes:13612] Ruby:r25394 (trunk): * lib/rexml/element.rb (text=): false should be converted to string.
marcandre 2009-10-19 05:54:29 +0900 (Mon, 19 Oct 2009) New Revision: 25394 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25394 Log: * lib/rexml/element.rb (text=): false should be converted to string. A patch by Teruo Oshida [ruby-dev:38351] Modified files: trunk/ChangeLog trunk/lib/rexml/element.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 25393) +++ ChangeLog (revision 25394) @@ -1,3 +1,8 @@ +Mon Oct 19 05:49:53 2009 Marc-Andre Lafortune <ruby-core@m...> + + * lib/rexml/element.rb (text=): false should be converted to string. + A patch by Teruo Oshida [ruby-dev:38351] + Sun Oct 18 22:33:25 2009 Tadayoshi Funaba <tadf@d...> * lib/date.rb: do not require lib/delta.rb. Index: lib/rexml/element.rb =================================================================== --- lib/rexml/element.rb (revision 25393) +++ lib/rexml/element.rb (revision 25394) @@ -492,7 +492,7 @@ def text=( text ) if text.kind_of? String text = Text.new( text, whitespace(), nil, raw() ) - elsif text and !text.kind_of? Text + elsif !text.nil? and !text.kind_of? Text text = Text.new( text.to_s, whitespace(), nil, raw() ) end old_text = get_text -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/