bdkjones/CodeKit — Issue #121: Indent issue on "Begin Script" comments when importing coffeescript
Author: medovob
Created: 2011-12-15 12:13:34+00:00
State: open

In some scenarios when importing coffeescript files, compilation fails due to the single space indentation of the injected comments

For example if I import a coffeescript that looks something like this

```coffeescript
(()->
doSomething()
)()
```

This compiles ok on its own (http://goo.gl/cEBCy)

If there is another imported file after this, codekit injects a comment block like so

```coffeescript
(()->
doSomething()
)()

### --------------------------------------------
Begin Script2.coffee
-------------------------------------------- ###

doSomethingElse()
```

The injected comment block causes compilation to fail due to the single space indent (http://goo.gl/2vGJQ)