sprig
sprig copied to clipboard
add indentnonempty function
This adds indentnonempty. It behaves the same as indent, but skips indenting empty lines. This is useful for indenting generated code.
Please let me know if there is a better name to use!
I wrote this for compose2nix, and thought it might be useful to include upstream. Thanks for the useful library!