Figure 15.55. The Tree Editor preferences panel
Check if the document should be formatted and indented (pretty-print) on save.