source-foundry / ufofmt

A fast, flexible UFO source file formatter based on the Rust Norad library
Apache License 2.0
7 stars 1 forks source link

Support custom indentation space formatting in write files #18

Closed chrissimpkins closed 3 years ago

chrissimpkins commented 3 years ago

Related https://github.com/linebender/norad/issues/145

It might be useful for a user to define the type (tab, space) and length (one, two, four) of space formatting in the file writes. This would reduce text diffs relative to other tooling used in a UFO work pipeline. I'm not sure that it is necessary to be dogmatic about this issue. The goal is to achieve consistent formatting and that can be, at least partially, user-defined + project-specific?

This would require support in the norad project.

chrissimpkins commented 3 years ago

https://github.com/linebender/norad/pull/148 🥳

chrissimpkins commented 3 years ago

This is now supported in norad main branch. Will add new options to define space formatting in the ufofmt executable.

chrissimpkins commented 3 years ago

29

chrissimpkins commented 3 years ago

We will support between 1 - 4 tabs or spaces and use the norad default = single tab indentation per level.

chrissimpkins commented 3 years ago

Added in #29, will be released in v0.5.0