diff --git a/odoo-server b/odoo-server index 55b922a..ddf2390 100755 Binary files a/odoo-server and b/odoo-server differ diff --git a/pkg/server/templates.go b/pkg/server/templates.go index 53c0daa..fe8f404 100644 --- a/pkg/server/templates.go +++ b/pkg/server/templates.go @@ -317,6 +317,10 @@ func injectXmlSpacePreserve(s string) string { if idx < 0 { return s } + // For self-closing tags like , insert before the '/' + if idx > 0 && s[idx-1] == '/' { + return s[:idx-1] + ` xml:space="preserve"` + s[idx-1:] + } return s[:idx] + ` xml:space="preserve"` + s[idx:] }