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 am getting the error message ReferenceError: token is not defined while running this on text that has NO-BREAK-SPACE character in the content.
Input
The code looked like this before beautification:
<p>hello world</p>
Expected Output
The code should have looked like this after beautification:
<p>hello world</p>
Actual Output
The code actually looked like this after beautification:
ReferenceError: token is not defined
at Beautifier.beautify (/Users/siva/.nvm/versions/node/v8.11.3/lib/node_modules/js-beautify/js/src/html/beautifier.js:372:29)
at style_html (/Users/siva/.nvm/versions/node/v8.11.3/lib/node_modules/js-beautify/js/src/html/index.js:33:21)
at Function.style_html (/Users/siva/.nvm/versions/node/v8.11.3/lib/node_modules/js-beautify/js/src/index.js:36:10)
at makePretty (/Users/siva/.nvm/versions/node/v8.11.3/lib/node_modules/js-beautify/js/lib/cli.js:448:36)
at Object.processInputSync (/Users/siva/.nvm/versions/node/v8.11.3/lib/node_modules/js-beautify/js/lib/cli.js:442:5)
at Array.forEach (<anonymous>)
at Object.exports.interpret (/Users/siva/.nvm/versions/node/v8.11.3/lib/node_modules/js-beautify/js/lib/cli.js:305:15)
at Object.<anonymous> (/Users/siva/.nvm/versions/node/v8.11.3/lib/node_modules/js-beautify/js/bin/js-beautify.js:4:5)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
js-beautify version - 1.8.0-rc12
The text was updated successfully, but these errors were encountered:
Description
I am getting the error message
ReferenceError: token is not defined
while running this on text that has NO-BREAK-SPACE character in the content.Input
The code looked like this before beautification:
Expected Output
The code should have looked like this after beautification:
Actual Output
The code actually looked like this after beautification:
js-beautify version - 1.8.0-rc12
The text was updated successfully, but these errors were encountered: