[Sugar-devel] js-beautify proper max line length

Manuel Quiñones manuq at laptop.org
Sat Jun 8 10:02:53 EDT 2013


2013/6/8 Daniel Narvaez <dwnarvaez at gmail.com>:
> It's pretty bad that js-beautify doesn't have a proper max line length
> option. I
> opened a bug about it
>
> https://github.com/einars/js-beautify/issues/284

Good.  Except for this bug, I think js-beautify does a very nice job
for JavaScript code.  For HTML and CSS it needs love.  That's why I'm
not running it in HTML or CSS of my web activities.

The things I don't like, and I may open bugs for, are:

- it removes empty lines, that are useful for code separation
- it adds trailing spaces (see
https://github.com/sugarlabs/sugar-web-template/blob/master/index.html#L11)
- it can do bad indentation after comments (see
https://github.com/sugarlabs/sugar-web-template/blob/master/index.html#L22)

--
.. manuq ..


More information about the Sugar-devel mailing list