After languishing in a dark eddy for several years since it was spun out of Template Toolkit core, I have adopted the Template::Plugin::Autoformat module and just released version 2.75 to CPAN.
The biggest change is how you USE it in your templates. The new version switches to initial cap 'Autoformat' instead of the previous lowercase 'autoformat'. This switch follows the Plugin convention used elsewhere, and fixes the long-standing bug where case-sensitive file systems failed to find the .pm file. (And shouldn't all filesystems be case-sensitive? I'm looking at you, HFS.)