Preserve blank lines#208
Conversation
|
This option uses the original source code and the ranges/extendedRanges in the AST nodes to figure out where line breaks should be inject to maintain the spacing that was in the original source code. |
|
Oh, sorry for the late reply. I'll review it at weekend. |
|
Cool. I'll rebase the code so that it's ready to merge. |
3b7a364 to
cfd5c61
Compare
|
I tried rebasing but I had branched before the giant switch statement was replaced with the |
cfd5c61 to
ee5d108
Compare
There was a problem hiding this comment.
Could you combine this VariableDeclaration with the above one?
|
@Constellation Let me know if there are any other changes you want me to make. |
|
LGTM! |
|
Thank you for your great contribution! |
|
And sorry for further late reply. |
|
@Constellation No worries. Thanks for the merge! |
|
Released it as |
I'm using escodegen to reformat user code in the Khan Academy live-editor. If a student adds spaces between lines to make things more reabable we'd like to maintain that format while fixing the indentation and other issues that might exist.
This submission fixes some issues from the previous one.