Closed jensschuppe closed 3 months ago
I added a do
… while
loop around the setValue()
and setElementsValue()
methods, since PhpWord only replaces the first occurrence of a macro variable.
@pfigel as discussed, happy to receive a review on that.
@pfigel Can you check if #66 fixes all of your use cases?
@pfigel Can you check if #66 fixes all of your use cases?
Ping @pfigel
@dontub Sorry for the delay! I re-tested the test cases above as well as some more complex templates we use in production. All scenarios work as expected now, so this LGTM. Thanks!
systopia-reference: 23739
Ad the
1.0
milestone: Let's consider this a bugfix for merging it during the beta phase.This is still missing some things from what @dontub and @jensschuppe planned to implement:
Note: This changes the code style of the entire
TemplateProcessor.php
file to comply with CiviCRM coding standards, so it's best reviewed with whitespace changes hidden.This is also being provided as a PR to PhpWord: PHPOffice/PHPWord/pull/2607.