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

Fix ugly emitted comments when removing code between tokens #286

Merged
merged 1 commit into from Jun 29, 2018

Conversation

alangpierce
Copy link
Owner

Fixes #281

Previously, it seemed best to remove all whitespace, but that makes comments
look really weird, since all spaces are removed in the comment. Instead, for
now, we remove whitespace and comments in their entirety (except newlines).

Fixes #281

Previously, it seemed best to remove all whitespace, but that makes comments
look really weird, since all spaces are removed in the comment. Instead, for
now, we remove whitespace and comments in their entirety (except newlines).
@alangpierce alangpierce merged commit 5b1deb0 into master Jun 29, 2018
@alangpierce alangpierce deleted the fix-ugly-emitted-comments branch June 30, 2018 21:21
aleclarson pushed a commit to aleclarson/sucrase that referenced this pull request Jul 1, 2018
…rce#286)

Fixes alangpierce#281

Previously, it seemed best to remove all whitespace, but that makes comments
look really weird, since all spaces are removed in the comment. Instead, for
now, we remove whitespace and comments in their entirety (except newlines).
aleclarson pushed a commit to aleclarson/sucrase that referenced this pull request Jul 1, 2018
…rce#286)

Fixes alangpierce#281

Previously, it seemed best to remove all whitespace, but that makes comments
look really weird, since all spaces are removed in the comment. Instead, for
now, we remove whitespace and comments in their entirety (except newlines).
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

Successfully merging this pull request may close these issues.

None yet

1 participant