Unable to use field with space
micahvandeusen opened this issue · 2 comments
micahvandeusen commented
Environment
- Version of docxtemplater : 3.36.0
- Used docxtemplater-modules : angular-parser
- Runner : Browser
How to reproduce my problem :
Following what is described here: #596
The following sample data was used to be able reproduce this:
{
"first name": "Hipp",
"last name": "Edgar"
}
Using the browser version with angular parser (tested also in the live demo) with a template as follows I get the result of "undefined":
{this[“last name”]} {this[“first name”]}
angular-parser.docx
Trying the following with angular parser gives the error "The scope parser for the tag "last name" failed to compile":
{last name} {first name}
regular.docx
edi9999 commented
Thanks for the detailled bug report !
I've just published a bugfix for this in version 3.36.1 of the docxtemplater library.
It should work correctly now.
edi9999 commented
The demo server will be updated in a few days/weeks with the same bugfix.