PHPWord
PHPWord copied to clipboard
Fix #1970
Description
Fixes deleteBlock
by using cloneBlock
instead of replaceBlock
, because it has a better regex.
Fixes #1970
Checklist:
- [ ] I have run
composer run-script check --timeout=0
and no errors were reported — I made the change via GitHub UI and hope that the GitHub workflow will run the tests once I make this PR - [ ] The new code is covered by unit tests (check build/coverage for coverage report) — no new lines were added
- [ ] I have updated the documentation to describe the changes — no features were added or changed, this is a bug fix
What's the status of this issue?
Why isn't this being merged into the 1.2.x branch as a hotfix instead of postponing it until the release of 2.0.0?