diff options
| author | Mikhail Osipov <mike.osipov@gmail.com> | 2014-01-07 22:27:54 +0400 |
|---|---|---|
| committer | Mikhail Osipov <mike.osipov@gmail.com> | 2014-01-07 22:27:54 +0400 |
| commit | 338968c8c600777a9d76adb0716c27f53c863a11 (patch) | |
| tree | 724e56dce75e542b7b98820bbff7e1402ea2fe4d | |
| parent | 513b9e8f6f72751328516cb7eda076417ffb4443 (diff) | |
fix parse files with CRLF
| -rw-r--r-- | cutter/cue.py | 3 |
1 files changed, 2 insertions, 1 deletions
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() |
