1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

merge miss of r39093.

I don't understand why svn merge didn't merge any files and reported no errors.
terrible...


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@39113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2013-02-06 13:03:59 +00:00
parent e5938a1157
commit e52527a4f9
3 changed files with 27 additions and 2 deletions

View file

@ -342,7 +342,7 @@ module REXML
md = @source.match( COMMENT_PATTERN, true )
case md[1]
when /--/, /-$/
when /--/, /-\z/
raise REXML::ParseException.new("Malformed comment", @source)
end

View file

@ -0,0 +1,25 @@
require "test/unit/testcase"
require 'rexml/document'
module REXMLTest
class CommentTester < Test::Unit::TestCase
# Bug #5278
def test_hyphen_end_line_in_doctype
xml = <<-XML
<?xml version="1.0"?>
<!DOCTYPE root [
<!-- comment end with hyphen -
here -->
]>
<root/>
XML
document = REXML::Document.new(xml)
comments = document.doctype.children.find_all do |child|
child.is_a?(REXML::Comment)
end
assert_equal([" comment end with hyphen -\n here "],
comments.collect(&:to_s))
end
end
end

View file

@ -1,5 +1,5 @@
#define RUBY_VERSION "1.9.3"
#define RUBY_PATCHLEVEL 384
#define RUBY_PATCHLEVEL 385
#define RUBY_RELEASE_DATE "2013-02-06"
#define RUBY_RELEASE_YEAR 2013