github rtts/djhtml v2.0.0

latest releases: 3.0.7, 3.0.6, 3.0.5...
21 months ago

Happy new year everyone! This release bumps the major version number to 2 because there has been a backwards-incompatible change: the -i command line option has been removed, because modifying files in-place is now the default.

If you have a custom pre-commit configuration with an entry key such as the following:

repos:
  - repo: https://github.com/rtts/djhtml
    rev: v2.0.0
    hooks:
      - id: djhtml
        entry: djhtml -i --tabwith 2

Please remove the -i argument for it to keep working as before:

repos:
  - repo: https://github.com/rtts/djhtml
    rev: v2.0.0
    hooks:
      - id: djhtml
        entry: djhtml --tabwith 2

Removing this argument not only made sense because modifying files is DjHTML's main use case, but also because it makes DjHTML more compatible with Windows (see #69). A big thanks to @GitRon and @spapas for figuring this out!

Note that otherwise the indentation algorithm is exactly the same. Also note that there are 2 known bugs in this algorithm: #50 and #59. We still need help to solve them. Feel free to submit your PRs and get them published in the next release!

What's Changed

Full Changelog: v1.5.2...v2.0.0

Don't miss a new djhtml release

NewReleases is sending notifications on new releases.