Project

General

Profile

« Previous | Next » 

Revision 5438

csvs.py: TsvReader.next(): Remove only the autodetected line ending instead of any standard line ending. Note that this requires all header override files to use the same line ending as the CSV they override, which is now the case.

View differences:

lib/csvs.py
64 64
            line = self.stream.readline()
65 65
            if line == '': raise StopIteration
66 66
            
67
            line, ending = strings.extract_line_ending(line)
67
            line = strings.remove_suffix(self.dialect.lineterminator, line)
68 68
            contents = strings.remove_suffix(escape, line)
69 69
            record += contents
70 70
            if len(contents) == len(line): break # no line continuation

Also available in: Unified diff