diff options
author | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2017-11-30 21:06:49 +0100 |
---|---|---|
committer | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2017-11-30 21:06:49 +0100 |
commit | 8401c45a152d7898ef468e3afed2eb5277bd07f7 (patch) | |
tree | 58840ca437543a70e3e8875dd38da418e6225643 /ranger | |
parent | df6a07140c04ce24620337c5211dbaa762dde027 (diff) | |
download | ranger-8401c45a152d7898ef468e3afed2eb5277bd07f7.tar.gz |
Keep the trailing/leading whitespace in the tagged files' paths
If a tagged file had a space at the end (or sometimes the beginning) of its name, it wasn't considered tagged after a restart.
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/container/tags.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/container/tags.py b/ranger/container/tags.py index 7aed5131..dabaf6a8 100644 --- a/ranger/container/tags.py +++ b/ranger/container/tags.py @@ -102,7 +102,7 @@ class Tags(object): def _parse(self, fobj): result = dict() for line in fobj: - line = line.strip() + line = line.rstrip('\n') if len(line) > 2 and line[1] == ':': tag, path = line[0], line[2:] if tag in ALLOWED_KEYS: |