The injectXmlSpacePreserve function was inserting the attribute AFTER
the self-closing slash in tags like <t t-name="foo"/>, producing
invalid XML: <t t-name="foo"/ xml:space="preserve">
Now correctly inserts before the slash:
<t t-name="foo" xml:space="preserve"/>
This fixes the "attributes construct error at column 33" that appeared
as a red banner in the Odoo webclient list view.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>