From 20ae8fed6b2252a1c016748486924856e945ef59 Mon Sep 17 00:00:00 2001 From: ser Date: Sat, 24 Apr 2004 02:04:10 +0000 Subject: - git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rexml/parsers/baseparser.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/rexml/parsers') diff --git a/lib/rexml/parsers/baseparser.rb b/lib/rexml/parsers/baseparser.rb index 025d43db54..92033a9c2b 100644 --- a/lib/rexml/parsers/baseparser.rb +++ b/lib/rexml/parsers/baseparser.rb @@ -166,7 +166,7 @@ module REXML return [ :end_element, x ] end return @stack.shift if @stack.size > 0 - @source.read if @source.buffer.size==0 + @source.read if @source.buffer.size<2 if @document_status == nil @source.consume( /^\s*/um ) word = @source.match( /(<[^>]*)>/um ) @@ -199,7 +199,7 @@ module REXML args = [ :start_doctype, name, pub_sys, long_name, uri ] if close == ">" @document_status = :after_doctype - @source.read if @source.buffer.size==0 + @source.read if @source.buffer.size<2 md = @source.match(/^\s*/um, true) @stack << [ :end_doctype ] else @@ -208,7 +208,7 @@ module REXML return args else @document_status = :after_doctype - @source.read if @source.buffer.size==0 + @source.read if @source.buffer.size<2 md = @source.match(/\s*/um, true) end end -- cgit v1.2.3