From 338968c8c600777a9d76adb0716c27f53c863a11 Mon Sep 17 00:00:00 2001 From: Mikhail Osipov Date: Tue, 7 Jan 2014 22:27:54 +0400 Subject: fix parse files with CRLF --- cutter/cue.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cutter/cue.py b/cutter/cue.py index 578f600..0d407c7 100644 --- a/cutter/cue.py +++ b/cutter/cue.py @@ -359,7 +359,8 @@ def read(filename, coding=None, error_handler=None, ignore_errors=False): parser = CueParser() for line, lineno in zip(cuefile.split("\n"), itertools.count(1)): - if line and not parse_line(line.strip()) and not ignore_errors: + line = line.strip() + if line and not parse_line(line) and not ignore_errors: return None parser.calc_offsets() -- cgit v1.2.3-70-g09d2