CHANGELOG.md 52.1 KB

Changelog

v1.9.1

Description

Closed Issues

  • nested table not beautified correctly (#1649)
  • Add an option to preserve indentation on empty lines (#1322)

v1.9.0

Description

Description

  • Fixed Tab indenting - when tabs indenting enabled, they are used universally. Also, tab size customizable: 8-space tabs would mean each tab is treated as 8 spaces. (#1294, #1551)
  • Accurate line wrapping - Layout always wraps when line length exceed specified column, unless wrapping would not reduce line length. (#284, #1238)
  • Improved Template handling in HTML - Go, Django, Handlebars, ERB/EJS/ASP, PHP (still only handlebars indenting) (#881, #1602, #1620)
  • Improved Template handling in Javascript - ERB/EJS/ASP, PHP (no indenting, no Django or Handlebars due to potential syntax conflicts for curly braces) (#1377)
  • Fixed indenting of mustache inverted conditionals (#1623 @e2tha-e)
  • Fixed indenting for HTML tags with option end tags (#1213)

https://github.com/beautify-web/js-beautify/compare/v1.8.9...v1.9.0

Closed Issues

  • Incorrect indentation of ^ inverted section tags in Handlebars/Mustache code (#1623)
  • PHP In HTML Attributes (#1620)
  • DeanEdward python unpacker offset problem (#1616)
  • CLI on Windows doesn't accept -f - for stdin? (#1609)
  • HTML type attribute breaks JavaScript beautification? (#1606)
  • Use of global MODE before declaration caused uglify problem (#1604)
  • When building html tags using Mustache variables, extra whitespace is added after opening arrow (#1602)