Skip to content
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 issues #959

Closed
feakuru opened this issue Dec 17, 2016 · 4 comments
Closed

templateProcessor issues #959

feakuru opened this issue Dec 17, 2016 · 4 comments

Comments

@feakuru
Copy link

feakuru commented Dec 17, 2016

So I'm trying to use a phpword template processor. But the template vars are not substituted if there is more than one in a table row (or maybe for another reason, i can't get it). Are there any limitations on what a template tag should be? Alphanumeric? Length? Please give me some info on them if they exist


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@ozilion
Copy link
Contributor

ozilion commented Dec 17, 2016

just not use any special characters

@bonanAngeLOL
Copy link

I´m trying to fill a word template, i´m not using any special character, nor I have error in my code (I can assure). Sometimes when is executed my php program, it doesn't fill some labels (${example}), when template is modified, some labels that didn't work at beggining begans to work, and others that worked fine are let of being filled, I don't know why I get this strange behavior

@feakuru
Copy link
Author

feakuru commented Feb 28, 2017

@bonanAngeLOL it's most probably due to the fact that word styles some words differently in different parts (well, it was this way in my case). So, you might not notice, but the xml might be
<w:p>${</w:p>example}
The quick fix is to try and erase the bugged template tag and print it by hand again. The more profound fix is to review the XML.

@feakuru
Copy link
Author

feakuru commented May 28, 2024

hey y'all, i'll go ahead and close this, sorry for necroposting and have a great day!

@feakuru feakuru closed this as completed May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants