8000 merge miss of r39093. · plusplus/ruby@e52527a · GitHub
[go: up one dir, main page]

Skip to content

Commit e52527a

Browse files
committed
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
1 parent e5938a1 commit e52527a

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

lib/rexml/parsers/baseparser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def pull_event
342342
md = @source.match( COMMENT_PATTERN, true )
343343

344344
case md[1]
345-
when /--/, /-$/
345+
when /--/, /-\z/
346346
raise REXML::ParseException.new("Malformed comment", @source)
347347
end
348348

test/rexml/test_comment.rb

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
require "test/unit/testcase"
2+
3+
require 'rexml/document'
4+
5+
module REXMLTest
6+
class CommentTester < Test::Unit::TestCase
7+
# Bug #5278
8+
def test_hyphen_end_line_in_doctype
9+
xml = <<-XML
10+
<?xml version="1.0"?>
11+
<!DOCTYPE root [
12+
<!-- comment end with hyphen -
13+
here -->
14+
]>
15+
<root/>
16+
XML
17+
document = REXML::Document.new(xml)
18+
comments = document.doctype.children.find_all do |child|
19+
child.is_a?(REXML::Comment)
20+
end
21+
assert_equal([" comment end with hyphen -\n here "],
22+
comments.collect(&:to_s))
23+
end
24+
end
25+
end

version.h

Lines 6228 changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#define RUBY_VERSION "1.9.3"
2-
#define RUBY_PATCHLEVEL 384
2+
#define RUBY_PATCHLEVEL 385
33

44
#define RUBY_RELEASE_DATE "2013-02-06"
55
#define RUBY_RELEASE_YEAR 2013

0 commit comments

Comments
 (0)
0