facebook/react — pull request #336 by spicyj (2013-09-11 00:17:22+00:00)
Title: JSX: Respect original spacing and newlines better

Fixes #335.

Now this JSX:

```
/** @jsx React.DOM */
var HelloMessage = React.createClass({
render: function() {
return

Look!
Facebook

;
}
});
```

produces

```
/** @jsx React.DOM */
var HelloMessage = React.createClass({displayName: 'HelloMessage',
render: function() {
return React.DOM.div(null,
" Look! ",
React.DOM.a( {href:
"http://www.facebook.com/"}, "Facebook "
)
);
}
});
```

rather than the less-desirable

```
/** @jsx React.DOM */
var HelloMessage = React.createClass({displayName: 'HelloMessage',
render: function() {
return React.DOM.div(null,
" Look! ", React.DOM.a( {href:"http://www.facebook.com/"}, "Facebook " ),
);
}
});
```