WGUNDERWOOD / tex-fmt

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

Remove ignore check from new line checking #44

Closed cdesaintguilhem closed 1 month ago

cdesaintguilhem commented 1 month ago

Since needs_env_new_line() is only called when the line is not ignored, it does not need to check the ignoring flags. This short PR trims the code to achieve this.

WGUNDERWOOD commented 1 month ago

Thanks, good catch!