mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* lib/rexml/entity.rb (unnormalized): do not call
document.record_entity_expansion if document is nil. see <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502535>. Thanks, Naohisa Goto. * test/rexml/test_document.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									e992737b4a
								
							
						
					
					
						commit
						a324863b99
					
				
					 3 changed files with 12 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -73,7 +73,7 @@ module REXML
 | 
			
		|||
    # all entities -- both %ent; and &ent; entities.  This differs from
 | 
			
		||||
    # +value()+ in that +value+ only replaces %ent; entities.
 | 
			
		||||
    def unnormalized
 | 
			
		||||
      document.record_entity_expansion
 | 
			
		||||
      document.record_entity_expansion unless document.nil?
 | 
			
		||||
      v = value()
 | 
			
		||||
      return nil if v.nil?
 | 
			
		||||
      @unnormalized = Text::unnormalize(v, parent)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue