XML output normalized when using API

When I use the API to create a project and then run "Generate Target Translations", the output XML is completely normalized.
However, when I create the same project by hand, the output XML is not normalized.

* Note that I am using the same custom XML file type in both situations.

Any ideas? I am stumped as why this happens