diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-31 06:55:17 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-31 06:55:17 +0000 |
commit | a9770c8058088ea9d7a2af1279e2c184cd763bb1 (patch) | |
tree | 45a197775881b7ee0c96e32d1037c7d2289b72de /lib/rexml | |
parent | 8129a8dfbdac69ac5879aedeec45ff7c444954ee (diff) |
* 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
Diffstat (limited to 'lib/rexml')
-rw-r--r-- | lib/rexml/text.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rexml/text.rb b/lib/rexml/text.rb index f1e14e75fe..c01ab33590 100644 --- a/lib/rexml/text.rb +++ b/lib/rexml/text.rb @@ -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 |