gkz/coffee2ls-codegen — pull request #1 by clkao (2012-10-29 09:14:33+00:00)
Title: support newline-dot in codegen

for this
```
circles.enter()
.attr("stroke-width", 2)
.attr("a")
.attr("b")
.attr("c")
.attr "something", (a) ->
console.log "fooo #a"
if a
console.log a
console.log b
alert "123"
```
we can now emit:
```
circles.enter!.attr 'stroke-width', 2
.attr 'a'
.attr 'b'
.attr 'c'
.attr 'something', (a) ->
console.log 'fooo #a'
if a
console.log a
console.log b
alert '123'
```

rather than
```
((((circles.enter!.attr 'stroke-width', 2).attr 'a').attr 'b').attr 'c').attr 'something', (a) ->
console.log 'fooo #a'
if a
console.log a
console.log b
alert '123'
```

which is a lot more readable for chained-calls heavy code like d3js

Note that somehow the first newline-dot (attr stroke-width in the example) is spliced and unavailable in raw. might be a redux bug.