summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorWojciech Siewierski <wojciech.siewierski@onet.pl>2017-11-30 21:06:49 +0100
committerWojciech Siewierski <wojciech.siewierski@onet.pl>2017-11-30 21:06:49 +0100
commit8401c45a152d7898ef468e3afed2eb5277bd07f7 (patch)
tree58840ca437543a70e3e8875dd38da418e6225643 /ranger
parentdf6a07140c04ce24620337c5211dbaa762dde027 (diff)
downloadranger-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.py2
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: