Skip to content

TemplateProcessor SetComplexBlock/Value and Sections #2562

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

oleibman
Copy link
Contributor

Description

Allow the TemplateProcessor methods setComplexBlock and setComplexValue to work with Sections.

Fixes #2561

Checklist:

  • I have run composer run-script check --timeout=0 and no errors were reported
  • The new code is covered by unit tests (check build/coverage for coverage report)
  • I have updated the documentation to describe the changes

Fix PHPOffice#2561. Allow the TemplateProcessor methods `setComplexBlock` and `setComplexValue` to work with Sections.
@coveralls
Copy link

coveralls commented Jan 31, 2024

Coverage Status

coverage: 96.825% (-0.4%) from 97.217%
when pulling 920ccbc on oleibman:sectiontemplate
into 8b891bb on PHPOffice:master.

It currently makes only one substitution, with no way to determine if there are more. Add an additional optional parameter to allow multiple substitutions; default is false to match current implementation (so no break).
@vadykoo
Copy link

vadykoo commented Dec 16, 2024

looks like it working with Section

@oleibman
Copy link
Contributor Author

@vadykoo Thank you for confirming.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

TemplateProcessor setComplexBlock /Value and Sections
3 participants