zprint-filter-1.0.0
Moved to 1.0.0 largely to fall in line with other mature Clojure code. The addition of "respect-blank lines" support in 0.5.4 and the complete reorganization of the documentation were the most recent major additions.
If you haven't looked at the documentation recently, it has changed drastically. Give it a look!
Added:
-
Support for babashka scripts (or anything with a shebang as the first line). They format correctly with precompiled binaries and uberjar, and now you can have special configuration for scripts using
{:script {:more-options ...}}. -
Formatting supported for ranges of input lines.
{:input {:range {:start ... :end ...}}}to specify the lines Supported forzprint-file-str, uberjar, and precompiled binaries. Issue #122. -
:style :fast-hang, which will offer considerable formatting speed-up for deeply nested code and structures, at the cost of output that takes a few more lines than classic zprint formatting and, rarely, looks a bit awkward. Doesn't speed up formatting for normally nested code or structures.
Fixed these Issues:
- #101 -- Should comments have special treatment with
{:parse {:interpose "\n\n"}} - #130 -- don't output spaces on empty lines
- #131 -- long comment lines are split when using indent-only
- #132 -- respect-bl still delete blank lines from dependencies
- #135 -- aligned inline comments don't work right with
{:style :respect-nl} - #136 -- constant pairing count is fooled by comments, newlines
- #137 -- last pair in a map has comma when followed by a comment
- #138 -- newline ignored when after last map element and :respect-nl
- #139 -- respect-bl doesn't work with comments in sets
- #141 -- comments missing in empty list
- #143 -- inconsistent indent for hanging right close paren/bracket/brace bug
- #144 -- zprint-file-str, uberjar, and binaries drop all but one trailing nl
- #145 -- reader conditionals don't work right with :indent-only and :respect-nl
- #148 -- left-space keep doesn't work for comments
- #149 -- when comment is last in a collection, :indent-only adds blank line