summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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