about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2016-02-10 02:47:32 +0100
committerhut <hut@lepus.uberspace.de>2016-02-10 02:47:32 +0100
commit17aa0b545bc1a9ac9ec1f7411ea670ad6d39097c (patch)
treec453960e8e3673d32655f375dce0ba400bb0c344
parent8099359508357ce5c0343275c311312633bfa611 (diff)
downloadranger-17aa0b545bc1a9ac9ec1f7411ea670ad6d39097c.tar.gz
ext.rifle: don't complain about empty lines in rifle.conf
-rwxr-xr-xranger/ext/rifle.py4
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")