diff --git a/app/components/document-creator.js b/app/components/document-creator.js index 76aa65de7..d6d3bec4c 100644 --- a/app/components/document-creator.js +++ b/app/components/document-creator.js @@ -84,7 +84,8 @@ export default class DocumentCreatorComponent extends Component { // regular templates from templatesForContext do not return body of template await this.template.reload(this.template); } - return instantiateUuids(this.template.body); + const trimmedHtml = this.template.body.replace(/>\s+<'); + return instantiateUuids(trimmedHtml); } else return ''; }