Closed sloganking closed 2 years ago
Instead of adding whitespace to everything past a //>
, we can ensure that everything past it is AT LEAST the same depth + tab_spaces
Ideation
if, any line inside //>
//<
is equal to or less than the bracket's whitespace, pop the whole block out. Otherwise, leave it alone.
While running
strfmt
directly aftercargo fmt
is fine. Runningstrfmt
repeatedly on it's own will cause code inside a structured comment to have too much whitespace depth.