mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
-
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fea9469fc6
commit
20ae8fed6b
7 changed files with 49 additions and 27 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue