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

Disable template handling, "<%" breaks beautify #1661

Closed
Rob--W opened this issue Apr 16, 2019 · 1 comment
Closed

Disable template handling, "<%" breaks beautify #1661

Rob--W opened this issue Apr 16, 2019 · 1 comment

Comments

@Rob--W
Copy link

Rob--W commented Apr 16, 2019

The patch to #1377 breaks beautification when "<%" is present.

Template handling should be optional and preferably off by default (maybe on by default for HTML, but definitely off by default for JS).

Test case:

  1. Visit https://beautifier.io/
  2. Input "<%";if(0){}

Expected:

"<%";
if (0) {}

Actual:

"<%";if(0){}

This even happens if I set the dropdown to "Beautify JavaScript" to force beautification as JS rather than autodetect.

@bitwiseman
Copy link
Member

Duplicate of #1647.

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

No branches or pull requests

2 participants