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 SetComplexBlock/Value and Sections #2562

Open
wants to merge 3 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: 97.218% (+0.001%) from 97.217%
when pulling 4d2f852 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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

TemplateProcessor setComplexBlock /Value and Sections
2 participants