Fix: CloneBlock regexp for different regexp engine with xml line-drop

This commit is contained in:
oe.sonnh 2020-01-07 11:44:37 +07:00
parent b8346af548
commit d965a69601
1 changed files with 1 additions and 1 deletions

View File

@ -737,7 +737,7 @@ class TemplateProcessor
$xmlBlock = null; $xmlBlock = null;
$matches = array(); $matches = array();
preg_match( preg_match(
'/(<\?xml.*)(<w:p\b.*>\${' . $blockname . '}<\/w:.*?p>)(.*)(<w:p\b.*\${\/' . $blockname . '}<\/w:.*?p>)/is', '/(.*((?s)<w:p\b(?:(?!<w:p\b).)*?\${' . $blockname . '}<\/w:.*?p>))(.*)((?s)<w:p\b(?:(?!<w:p\b).)*?\${\/' . $blockname . '}<\/w:.*?p>)/is',
$this->tempDocumentMainPart, $this->tempDocumentMainPart,
$matches $matches
); );