From 9c27c9626a44d19276a2e03ca907a4a159cd464f Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 15 Feb 2010 22:02:32 +0100 Subject: data/generate.py: allow spaces as seperators in mimetypes --- ranger/data/generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.4.1-2-gfad0