From 4ff4880173b4db55e6830c57025c55cc4f1472eb Mon Sep 17 00:00:00 2001 From: Paweł Kraśnicki Date: Sun, 22 Dec 2013 13:39:35 +0100 Subject: Strip leading whitespace when parsing config --- ranger/core/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit 1.4.1-2-gfad0