Skip to content

Conversation

@aksiksi
Copy link

@aksiksi aksiksi commented Mar 4, 2025

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!

@seddarj seddarj mentioned this pull request Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant