Changes for version 0.01 - 2026-03-07

  • Unreleased initial development
  • Added conservative normalization
  • Added narrow indentation pass for obvious HTML-only lines
  • Added plain text indentation inside safe HTML structure
  • Preserved lines containing Embedded Perl markers
  • Added conservative handling for single-line and multiline HTML comments
  • Added protected handling for script and style blocks
  • Added conservative handling for multiline inline style="..." attributes
  • Added CLI with --write, --check, --stdin, --diff, and --version
  • Added --backup and --backup-ext support for safer in-place writes
  • Added pure-Perl diff support with minimal unified-style output
  • Added sample-driven, diff, indentation, and CLI tests
  • Added --output support for writing tidied content to a separate file
  • add JSON config file support via --config
  • auto-detect .mojo-prettytidy.json from the current working directory
  • allow config defaults for prefix/outdir and formatter width settings
  • ensure CLI options override config values
  • extend CLI test helper to support child cwd
  • Then I re-thought it and many moving parts got changed out.

Documentation

User guide for Mojo::PrettyTidy and mojo-prettytidy

Provides

in lib/Mojo/PrettyTidy.pm
in lib/Mojo/PrettyTidy/Diff.pm