diff options
-rwxr-xr-x | ranger/ext/rifle.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py index afc0b558..a8d8bee7 100755 --- a/ranger/ext/rifle.py +++ b/ranger/ext/rifle.py @@ -157,9 +157,9 @@ class Rifle(object): lineno = 0 for line in f: lineno += 1 - if line.startswith('#') or line == '\n': - continue line = line.strip() + if line.startswith('#') or line == '': + continue try: if self.delimiter1 not in line: raise Exception("Line without delimiter") |