Skip to content

Commit 31253f4

Browse files
committed
Revert "Remove a single \n from each field of test files."
This reverts commit 3d34da6.
1 parent 190eb07 commit 31253f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

html5lib/tests/support.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ def __iter__(self):
8383
heading = self.isSectionHeading(line)
8484
if heading:
8585
if data and heading == self.newTestHeading:
86+
# Remove trailing newline
87+
data[key] = data[key][:-1]
8688
yield self.normaliseOutput(data)
8789
data = DefaultDict(None)
8890
key = heading

0 commit comments

Comments
 (0)