You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some inline javascript inside my HTML that I want to keep condensed so I added <script> tag to my unformatted list but code inside tags still comes out "beautified" (same happens with <style>).
I've noticed this problem too. I don't think that the current behavior is intended, and Teo's solution of moving the this.is_unformatted(tag_check, unformatted) condition above the tag_check === 'script' condition solves the problem.
I have some inline javascript inside my HTML that I want to keep condensed so I added
<script>
tag to my unformatted list but code inside tags still comes out "beautified" (same happens with<style>
).I did some poking around and this gets easily fixed when I change order of if statements:
https://github.com/einars/js-beautify/blob/master/js/lib/beautify-html.js#L405-L426
Now I can add script and style tags to unformatted list if I want to.
So I was wondering is current behavior intended or should I make pull request?
The text was updated successfully, but these errors were encountered: