-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected indentation with newline delimited attributes #59
Comments
Try to keep your closing brackets in line with your opening ones. I want to remove this limitation in future but it's a big piece of work |
Ah I see. Forgive my ignorance but is there a specific reason why the newlines aren't simply stripped? This was the implicit behaviour I was expecting before I actually looked into what the output looked like. For example:
would be converted to
|
As I haven't implemented source maps yet, the temporary (but long standing) solution was to make sure the input lines had 1 to 1 parity with output lines. |
Fair enough. I don't really use source maps since the transformation is pretty trivial to work backwards to the offending line, but I can see the reasoning. Perhaps in the short term a |
Try Coffee-React link
If I have JSX that looks like:
This gets compiled to:
CoffeeScript chokes on this input, claiming
unexpected indentation
. Strangely, if I remove either of the backslashes (or put the attributes on the same line, which makes the transform produce equivalent code), it works without a problem.The text was updated successfully, but these errors were encountered: