Skip to content

Commit 4d94183

Browse files
committed
Drop newlines from the double-breakpoint test
because the html4 and html5 parsers just handle tags and insert newlines differently, and their presence/absence is orthogonal to wrapping in a `p` tag.
1 parent 4b339a5 commit 4d94183

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: test/integration/test_scrubbers.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def html5?
245245
doc = klass.parse("<html><body>#{BREAKPOINT_FRAGMENT}</body></html>")
246246
result = doc.scrub!(:double_breakpoint)
247247

248-
assert_equal BREAKPOINT_RESULT, doc.xpath("/html/body").inner_html
248+
assert_equal BREAKPOINT_RESULT, doc.xpath("/html/body").inner_html.delete("\n")
249249
assert_equal doc, result
250250
end
251251
end

0 commit comments

Comments
 (0)