Space in front of slash of self-closing tag

I'm translating an XML file with self-closing tags using a custom XML2 filet type.

For example:

<decvar/>

<displayfeedback linkrefid="0"/>

When I generate my output, Trados Studio adds a space in front of the slash of self-closing tags.

For example:

<decvar />

<displayfeedback linkrefid="0" />

This space is breaking the import in the native application.

The workaround is to manually fix it by find and replace, but it's tedious. Is there a setting in Trados Studio I can tweak to avoid the space?