WGUNDERWOOD / tex-fmt

An extremely fast LaTeX formatter written in Rust
MIT License
265 stars 20 forks source link

Allow indentation using tabs instead of spaces #31

Closed Timmyfox closed 1 month ago

Timmyfox commented 1 month ago

To build upon #27, allowing the choice of indentation size using --tab 4 is a great improvement, but it would be even better if the user could additionally be able to switch it to using actual \t tabs instead of spaces.

WGUNDERWOOD commented 1 month ago

Implemented in 4c7a8416f6c939edc8149b3fc997a9ab4edd7431. Let me know if it works as expected! You should run tex-fmt --usetabs --tab 1 to use a single tab character per level of indentation.

Timmyfox commented 1 month ago

Appears to be working, thanks!