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

* lib/rexml/text.rb (REXML::Text#initialize): fix typo and a bug that

seems to be caused by refactoring.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2010-01-31 06:55:17 +00:00
parent 8129a8dfbd
commit a9770c8058
2 changed files with 8 additions and 3 deletions

View file

@ -1,8 +1,13 @@
Sun Jan 31 15:50:34 2010 Yusuke Endoh <mame@tsg.ne.jp>
* lib/rexml/text.rb (REXML::Text#initialize): fix typo and a bug that
seems to be caused by refactoring.
Sun Jan 31 15:46:37 2010 Yusuke Endoh <mame@tsg.ne.jp>
* lib/rexml/parent.rb (REXML::Parent#delete): return the deleted node
because the rdoc of REXML::Element#delete_element says it returns
"the element that was removed."
"the element that was removed." [REXMLTracker#161]
Sun Jan 31 14:33:00 2010 James Edward Gray II <jeg2@ruby-lang.org>

View file

@ -88,7 +88,7 @@ module REXML
# Text.new( "sean russell", false, nil, true, ["s"] ) #-> "sean russell"
# In the last example, the +entity_filter+ argument is ignored.
#
# +pattern+ INTERNAL USE ONLY
# +illegal+ INTERNAL USE ONLY
def initialize(arg, respect_whitespace=false, parent=nil, raw=nil,
entity_filter=nil, illegal=NEEDS_A_SECOND_CHECK )
@ -117,7 +117,7 @@ module REXML
@string.gsub!( /\r\n?/, "\n" )
Text.check(@string, NEEDS_A_SECOND_CHECK, doctype) if @raw and @parent
Text.check(@string, illegal, doctype) if @raw
end
def parent= parent