Skip to content

Commit c37319c

Browse files
committed
Ignore trailing (and leading) newlines in diff chunks.
- Legacy-Id: 447
1 parent c4041cd commit c37319c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def setUp(self):
112112
for item in os.listdir(testdir):
113113
path = testdir + "/" + item
114114
if item.startswith("generic-") and os.path.isfile(path):
115-
chunk = filetext(path)
115+
chunk = filetext(path).strip()
116116
chunk = re.sub(r"([\[\]().|+*?])", r"\\\1", chunk)
117117
# @@ -27,0 \+23,1 @@
118118
chunk = re.sub(r"(?m)^@@ -\d+,(\d+) \\\+\d+,(\d+) @@$", r"@@ -\d+,\1 \+\d+,\2 @@", chunk)

0 commit comments

Comments
 (0)