pamoller / xmlformatter

Format and compress XML documents
MIT License
26 stars 9 forks source link

Question: Ignore Attributes #15

Closed JustBarnt closed 1 month ago

JustBarnt commented 1 month ago

Is there a way to make the formatter not re-order attributes? I've tried the --preserve flag but I can't seem to find any way to prevent it from re-ordering my attributes

hartwork commented 1 month ago

Line… https://github.com/pamoller/xmlformatter/blob/ebbc3b307c93ba44629686703ba6908fe2e0c558/xmlformatter.py#L725 …seems to be related. If that's the right spot, the behavior is currently unconditional.

pamoller commented 1 month ago

closed with v0.2.7