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;
|
||||
$matches = array();
|
||||
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,
|
||||
$matches
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue