Closed lethevimlet closed 6 years ago
Notifying @bitwiseman
I opened an issue on js-beautify github since atom-beautify depends on it. https://github.com/beautify-web/js-beautify/issues/874
This issue has been automatically marked as stale because it has not had recent activity. If this is still an issue, please add a comment. It will be closed if no further activity occurs. Thank you for your contributions.
Dojo Toolkit uses script type=”dojo/method” and script type=”dojo/aspect” since this is not a default this will cause formatting issues.
dojo/method and dojo/aspect is highly used when working with Dojo Toolkit, as described in
https://dojotoolkit.org/reference-guide/1.10/dijit/Declaration.html
It can be easily fixed like so (line 504 of beautify-html.js)
tag_complete.search(/\b(text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect)/) > -1))) {
Ideally atom-beautify shouldn't attempt to format unknown types since in worst case scenario the formatting would be omitted while if wrong formatting is applied to an unknown type code will get messed up affecting its functionality.