summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-02-15 22:02:32 +0100
committerhut <hut@lavabit.com>2010-02-15 22:02:32 +0100
commit9c27c9626a44d19276a2e03ca907a4a159cd464f (patch)
tree64e30d0e1582ec1f767b38c65c880d177b904233
parentf6ae504ca793efddde036a4d486c81cbc03f3662 (diff)
downloadranger-9c27c9626a44d19276a2e03ca907a4a159cd464f.tar.gz
data/generate.py: allow spaces as seperators in mimetypes
-rwxr-xr-xranger/data/generate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/data/generate.py b/ranger/data/generate.py
index ce2c07c0..254ddb52 100755
--- a/ranger/data/generate.py
+++ b/ranger/data/generate.py
@@ -22,7 +22,7 @@ if __name__ == '__main__':
 	table = {}
 
 	for line in open(len(sys.argv) > 1 and sys.argv[1] or "mime.types"):
-		if len(line) > 3 and line[0] != '#' and '\t' in line:
+		if len(line) > 3 and line[0] != '#' and ('\t' in line or ' ' in line):
 			name, *extensions = line.split()
 			for ext in extensions:
 				table[ext] = name