yasuyk / web-beautify

Format HTML, CSS and JavaScript/JSON by js-beautify
GNU General Public License v3.0
219 stars 21 forks source link

Changed web-beautify-args '("-f" "-") to web-beautify-args '("-"), as of js-beautify 1.8.9 #39

Closed stradicat closed 5 years ago

stradicat commented 5 years ago

Changed web-beautify-args '("-f" "-") to web-beautify-args '("-"), otherwise js-beautify (v1.8.9) replaces the filename with - (-f does not have the formerly desired effect) and results in error, code isn't formatted.

syl20bnr commented 5 years ago

:+1: Is it necessary to mention a minimum web-beautify version in the README ?

stradicat commented 5 years ago

Hi @syl20bnr, I didn't understand the comment. What minimum version of web-beautify? Because the current 2-year old version isn't working with the current version of js-beautify, which is 1.8.9.

ayman commented 5 years ago

So just agreeing, the args need to be - with version 1.8.9.