grammar.xml files have become a bit messy over time, not using a consistent indentation. I’ve added
org.languagetool.dev.XmlIndenter to the repo to re-indent XML files. While you can indent XML with many tools (e.g.
xmllint), these tools tend to introduce line breaks.
XmlIndenter really only changes to indentation. I’ve used it for
pt-BR/grammar.xml already. Feel free to run it on other XML grammar files, or let me know if you want me to run it for you.
How do I use it on Windows?
It’s meant to be called directly from the IDE (e.g. IntelliJ), assuming rule developers have set that up anyway.