diff options
author | Paweł Kraśnicki <dev@pkkm.eu> | 2013-12-22 13:39:35 +0100 |
---|---|---|
committer | Paweł Kraśnicki <dev@pkkm.eu> | 2013-12-22 13:39:35 +0100 |
commit | 4ff4880173b4db55e6830c57025c55cc4f1472eb (patch) | |
tree | 516fe919ab2f7cbc9e2cea84b25ace505c935900 | |
parent | 1bf58392c6b26d9e6d4c5886a51c94d2526cd767 (diff) | |
download | ranger-4ff4880173b4db55e6830c57025c55cc4f1472eb.tar.gz |
Strip leading whitespace when parsing config
-rw-r--r-- | ranger/core/actions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 67223258..eb9169a6 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -287,7 +287,7 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): def source(self, filename): filename = os.path.expanduser(filename) for line in open(filename, 'r'): - line = line.rstrip("\r\n") + line = line.lstrip().rstrip("\r\n") if line.startswith("#") or not line.strip(): continue try: |