diff --git a/src/PhpWord/TemplateProcessor.php b/src/PhpWord/TemplateProcessor.php index 582c3509..3f7770d3 100644 --- a/src/PhpWord/TemplateProcessor.php +++ b/src/PhpWord/TemplateProcessor.php @@ -748,8 +748,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('##', $tmpXmlRow) && + if (!preg_match('##', $tmpXmlRow) && !preg_match('##', $tmpXmlRow) ) { break;