Adding condition for document template saving using libreoffice
When I save document template with libreoffice (in .docx format) the cloneRow with nested table doesn't work. The problem is that the regular expression, that used for search if row is no longer part of the spanned row, was wrong: <w:vMerge w:val="continue" /> became <w:vMerge w:val="continue"/> without space at the closure tag. Sorry for my English.
This commit is contained in:
parent
b2c627d57c
commit
7c8cfb7b8a
|
|
@ -612,7 +612,8 @@ 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"/>#', $tmpXmlRow)) {
|
||||
break;
|
||||
}
|
||||
// This row was a spanned row, update $rowEnd and search for the next row.
|
||||
|
|
|
|||
Loading…
Reference in New Issue