Skip to content

Clone row issue [Text between two tables (both with merge cell) got c… #1981

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

leliamak
Copy link

@leliamak leliamak commented Dec 9, 2020

Clone row issue [Text between two tables (both with merge cell) got clone when applying cloneRow to the last row (with merge cell) of first table] fix

Description

I have two tables in a word template, both with merge cells. When applying cloneRow to the last row (with merge cells) on the first table, the text between the first and second table got clone as well.

Fixes # (issue)
In the merge cell checking, added a checking to stop cloning when close table tag is found.

if (preg_match('#</w:tbl>#', $tmpXmlRow) || (!preg_match('#<w:vMerge/>#', $tmpXmlRow) && !preg_match('#<w:vMerge w:val="continue"\s*/>#', $tmpXmlRow))) { break; }

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

…lone when applying cloneRow to last merge row of first table] fix
@PowerKiKi PowerKiKi changed the base branch from develop to master November 16, 2022 21:15
@Progi1984 Progi1984 force-pushed the master branch 3 times, most recently from 2d9f999 to e458249 Compare August 30, 2023 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants