Skip to content

TemplateProcessor dollar sign issue #1022

Closed
@krtorio

Description

@krtorio

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions