mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rexml/parsers/baseparser.rb
(REXML::Parsers::BaseParser#pull_event): Support optional NDATA in parameter entity declaration. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ce89dedde3
commit
3e5f5f5ca4
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Sun Aug 11 18:07:39 2013 Kouhei Sutou <kou@cozmixng.org>
|
||||||
|
|
||||||
|
* lib/rexml/parsers/baseparser.rb
|
||||||
|
(REXML::Parsers::BaseParser#pull_event): Support optional NDATA
|
||||||
|
in parameter entity declaration.
|
||||||
|
|
||||||
Sun Aug 11 17:54:07 2013 Kouhei Sutou <kou@cozmixng.org>
|
Sun Aug 11 17:54:07 2013 Kouhei Sutou <kou@cozmixng.org>
|
||||||
|
|
||||||
* NEWS (REXML::Parsers::SAX2Parser): Add about this change.
|
* NEWS (REXML::Parsers::SAX2Parser): Add about this change.
|
||||||
|
|
|
@ -283,7 +283,8 @@ module REXML
|
||||||
# External reference
|
# External reference
|
||||||
match[3] = match[3][1..-2] # PUBID
|
match[3] = match[3][1..-2] # PUBID
|
||||||
match[4] = match[4][1..-2] # HREF
|
match[4] = match[4][1..-2] # HREF
|
||||||
# match is [ :entity, name, PUBLIC, pubid, href ]
|
match.delete_at(5) if match.size > 5 # Chop out NDATA decl
|
||||||
|
# match is [ :entity, name, PUBLIC, pubid, href(, ndata)? ]
|
||||||
else
|
else
|
||||||
match[2] = match[2][1..-2]
|
match[2] = match[2][1..-2]
|
||||||
match.pop if match.size == 4
|
match.pop if match.size == 4
|
||||||
|
|
Loading…
Reference in a new issue