Skip to content
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

Any way to not kill empty lines? #88

Closed
ubershmekel opened this issue Jan 3, 2014 · 6 comments
Closed

Any way to not kill empty lines? #88

ubershmekel opened this issue Jan 3, 2014 · 6 comments

Comments

@ubershmekel
Copy link
Contributor

Or at least enforce an empty line between function declarations?

@goatslacker
Copy link
Member

Use the --legacy option switch through CLI. If you're calling it via your program just use the exported function.

@ubershmekel
Copy link
Contributor Author

Thank you for replying, this indeed worked. Are empty lines between functions a deprecated mode of operation?

@goatslacker
Copy link
Member

Nope, I'd very much love to support it it's just that escodegen rewrites all of your code and doesn't take into account any original styling. The reason I went with something like escodegen in the first place is because it is a lot more flexible to build new rules since they operate with an AST and not string replace on the code.

@timelf123
Copy link

Is --legacy mode still working?

@goatslacker
Copy link
Member

it should be. Can you please give a failing test case?

@timelf123
Copy link

Just saw a comment here http://stackoverflow.com/a/19297893/411284 that said it didn't work, have not confirmed myself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants