Show More
@@ -229,7 +229,7 def unidiff(a, ad, b, bd, fn1, fn2, opts | |||
|
229 | 229 | |
|
230 | 230 | def checknonewline(lines): |
|
231 | 231 | for text in lines: |
|
232 | if text[-1] != '\n': | |
|
232 | if text[-1:] != '\n': | |
|
233 | 233 | text += "\n\ No newline at end of file\n" |
|
234 | 234 | yield text |
|
235 | 235 |
@@ -737,7 +737,7 class patchfile(object): | |||
|
737 | 737 | for x in self.rej: |
|
738 | 738 | for l in x.hunk: |
|
739 | 739 | lines.append(l) |
|
740 | if l[-1] != '\n': | |
|
740 | if l[-1:] != '\n': | |
|
741 | 741 | lines.append("\n\ No newline at end of file\n") |
|
742 | 742 | self.backend.writerej(self.fname, len(self.rej), self.hunks, lines) |
|
743 | 743 |
General Comments 0
You need to be logged in to leave comments.
Login now