Fix: CloneBlock regexp for different regexp engine with xml line-drop
This commit is contained in:
parent
b8346af548
commit
d965a69601
|
|
@ -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
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue