summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorVlad <vlad7mail@gmail.com>2016-11-15 19:18:19 +0100
committerVlad <vlad7mail@gmail.com>2016-11-15 19:18:19 +0100
commit67fb633bcc5b65ae9d20ead5c68d5b677bbc1485 (patch)
tree936e54ae4e6adf3af906162f8791c7713c3f63b8
parent055247a002757ab439e68f8497b3935f28a839c4 (diff)
downloadranger-67fb633bcc5b65ae9d20ead5c68d5b677bbc1485.tar.gz
Fixed trailing space bug in config parsing.
-rw-r--r--ranger/core/actions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index c119c501..77654b1c 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -346,7 +346,7 @@ class Actions(FileManagerAware, SettingsAware):
         filename = os.path.expanduser(filename)
         with open(filename, 'r') as f:
             for line in f:
-                line = line.lstrip().rstrip("\r\n")
+                line = line.lstrip().rstrip(" \r\n")
                 if line.startswith("#") or not line.strip():
                     continue
                 try: