mrdoob/three.js — pull request #3108 by marwanhilmi (2013-02-21 08:39:44+00:00)
Title: Small patch to OBJLoader to remove extra whitespaces from lines in OBJ f...

Some OBJ files tested have more than 1 whitespace between vertices/faces on each line. Files with different whitespace lengths typically load fine Blender, Max, Maya, etc. Based on my understanding of the specification, longer whitespace is acceptable.

Examples of different spacing on vertices:
```
v -3.0 1.8 0.0
v -3.0 1.8 0.0
v -3.0 1.8 0.0
```

This small fix add a line.replace function to remove extra whitespace so these OBJ files load correctly in three.js. Note the proceeding line.trim() function only removes whitespace at the beginning and end of the line:
```javascript
var line = lines[ i ];
line = line.replace( /\s+/g, ' ' );
line = line.trim();
```