-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
TemplateProcessor::replaceBlock regular expression not matching #523
Comments
have you try to parse your xml online ? I've got : Unable to parse any XML input. org.jdom2.input.JDOMParseException: Error on line 1: The prefix "w" for element "w:p" is not bound. |
The xml was generated by Office Word (and the file is properly opened, even after PHPWord manipulation) so I don't think it's badly formated.
|
I manage to make it work by removing the It looked like a line break at the beginning of the file made the regex fail. I edited the document with Word 12 on Mac OS 10.10, maybe that the reason for this failing line break. I am going to work on a fork to se if I can come to a "clean" regex working with my document but keeping the |
Duplicate of #316 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Hello,
I have a non matching case in TemplateProcessor::replaceBlock method regular expression.
In the template document I use, it does not match the tag.
Here is a sample of the document where you can see the tag.
The tag in the document is
${ENSEMBLE_PERSONNEL} [...] ${/ENSEMBLE_PERSONNEL}
I guess it's related to all the XML tags that Word inserted in the document but the template will be created by non technical users so I can tell them to fix it in the XML.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: