diff options
-rwxr-xr-x | ranger/ext/rifle.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py index 92fbae11..fd91c1af 100755 --- a/ranger/ext/rifle.py +++ b/ranger/ext/rifle.py @@ -208,7 +208,7 @@ class Rifle(object): process = Popen(["file", "--mime-type", "-Lb", fname], stdout=PIPE, stderr=PIPE) mimetype, _ = process.communicate() - self._mimetype = mimetype.decode(ENCODING) + self._mimetype = mimetype.decode(ENCODING).strip() return self._mimetype def _build_command(self, files, action, flags): |