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
id='n124' href='#n124'>124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205