diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-31 12:36:27 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-31 12:36:27 +0000 |
commit | 323d23c44b58ab5f9d6ddd177d54d6fc7f1f4217 (patch) | |
tree | aed4608112ca22a132faa4d4f1dcea4bcd9c4da2 /lib | |
parent | a497f3a52de7843bbae0a418155bc03d166e18cf (diff) | |
download | ruby-323d23c44b58ab5f9d6ddd177d54d6fc7f1f4217.tar.gz |
* lib/rexml/text.rb (REXML::Text#initialize): do Text.check only when
parent is specified, since Text.check may need doctype. partially
revert r26518.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rexml/text.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/text.rb b/lib/rexml/text.rb index c01ab33590..5cef876c52 100644 --- a/lib/rexml/text.rb +++ b/lib/rexml/text.rb @@ -117,7 +117,7 @@ module REXML @string.gsub!( /\r\n?/, "\n" ) - Text.check(@string, illegal, doctype) if @raw + Text.check(@string, illegal, doctype) if @raw and @parent end def parent= parent |