When the config is set to append a newline, opening the XML with e.g. VS Code will cause it to add a newline to the very end of the file. It would be best to rename our option to something TwinCAT specific after all.