equal
deleted
inserted
replaced
705 eol = '\n' |
705 eol = '\n' |
706 |
706 |
707 if self.eolmode != 'strict' and eol and eol != '\n': |
707 if self.eolmode != 'strict' and eol and eol != '\n': |
708 rawlines = [] |
708 rawlines = [] |
709 for l in lines: |
709 for l in lines: |
710 if l and l[-1] == '\n': |
710 if l and l.endswith('\n'): |
711 l = l[:-1] + eol |
711 l = l[:-1] + eol |
712 rawlines.append(l) |
712 rawlines.append(l) |
713 lines = rawlines |
713 lines = rawlines |
714 |
714 |
715 self.backend.setfile(fname, ''.join(lines), mode, self.copysource) |
715 self.backend.setfile(fname, ''.join(lines), mode, self.copysource) |