The registry has many entries that affect this.

Many write such a question and end up using WinTidy.

Bob