-
Notifications
You must be signed in to change notification settings - Fork 2.7k
TemplateProcessor dollar sign issue #1022
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@krtorio you can use any other preffix and suffix instead of ${ and } just modifying two function in TemplateProcessor as below but i must say i am using version 12 so you shouldn't just copy paste the code
` `protected function setValueForPart($documentPartXML, $search, $replace,
|
I'm using version 0.13.0, thanks for the warning |
I have a docx template file going through the Template Processor, but the resulting output docx file has an error and cannot be opened.
Further inspection revealed that the error is caused by individual dollar sign or $ characters located anywhere in the docx file. Output docx file is now readable after removing $ characters from the template.
Is this something to do with the ${search pattern}? Does phpword expect $ characters to be followed by open close brackets?
The docx template file is a financial document so $ characters are expected to show up everywhere. I am surprised that the issue exists I expected phpword to ignore $ characters that do not follow the pattern.
The text was updated successfully, but these errors were encountered: