Skip to content

Commit

Permalink
Only one bodytag allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
enricsinergia committed Jan 8, 2024
1 parent 2f06c92 commit 49f2209
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2369,6 +2369,10 @@ function meth_Merge_BlockSections(&$Txt,&$LocR,&$Src,&$RecSpe) {
// Main loop
$Src->DataFetch();

// STIC-Custom 20230903 EPS - Only one tag w:body will be used in the document
$bodyPresent = false;
// END STIC-Custom

while($Src->CurrRec!==false) {

// Headers and Footers
Expand Down Expand Up @@ -2478,7 +2482,15 @@ function meth_Merge_BlockSections(&$Txt,&$LocR,&$Src,&$RecSpe) {
}
}
if ($piOMS) $this->meth_PlugIn_RunAll($this->_piOnMergeSection,$ArgLst);

// STIC-Custom 20230903 EPS - Only one tag w:body will be used in the document
if ($bodyPresent){
$SecSrc = str_replace('<w:body>', '', $SecSrc);
$BlockRes = str_replace('</w:body>', '', $BlockRes);
}
$BlockRes .= $SecSrc;
$bodyPresent = true;
//END STIC-Custom
}

// Next row
Expand Down

0 comments on commit 49f2209

Please sign in to comment.