change regex instead of checking twice
This commit is contained in:
parent
7c8cfb7b8a
commit
5057617de7
@ -612,8 +612,7 @@ class TemplateProcessor
|
||||
// If tmpXmlRow doesn't contain continue, this row is no longer part of the spanned row.
|
||||
$tmpXmlRow = $this->getSlice($extraRowStart, $extraRowEnd);
|
||||
if (!preg_match('#<w:vMerge/>#', $tmpXmlRow) &&
|
||||
!preg_match('#<w:vMerge w:val="continue" />#', $tmpXmlRow) &&
|
||||
!preg_match('#<w:vMerge w:val="continue"/>#', $tmpXmlRow)) {
|
||||
!preg_match('#<w:vMerge w:val="continue"\s*/>#', $tmpXmlRow)) {
|
||||
break;
|
||||
}
|
||||
// This row was a spanned row, update $rowEnd and search for the next row.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user