mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-29 16:56:03 +03:00
Close tbody after images and charts
This commit is contained in:
parent
af01842f78
commit
0a09b235ee
@ -394,7 +394,6 @@ class PHPExcel_Writer_HTML extends PHPExcel_Writer_Abstract implements PHPExcel_
|
|||||||
|
|
||||||
// calculate start of <tbody>, <thead>
|
// calculate start of <tbody>, <thead>
|
||||||
$tbodyStart = $rowMin;
|
$tbodyStart = $rowMin;
|
||||||
$tbodyEnd = $rowMax;
|
|
||||||
$theadStart = $theadEnd = 0; // default: no <thead> no </thead>
|
$theadStart = $theadEnd = 0; // default: no <thead> no </thead>
|
||||||
if ($sheet->getPageSetup()->isRowsToRepeatAtTopSet()) {
|
if ($sheet->getPageSetup()->isRowsToRepeatAtTopSet()) {
|
||||||
$rowsToRepeatAtTop = $sheet->getPageSetup()->getRowsToRepeatAtTop();
|
$rowsToRepeatAtTop = $sheet->getPageSetup()->getRowsToRepeatAtTop();
|
||||||
@ -441,14 +440,12 @@ class PHPExcel_Writer_HTML extends PHPExcel_Writer_Abstract implements PHPExcel_
|
|||||||
if ($row == $theadEnd) {
|
if ($row == $theadEnd) {
|
||||||
$html .= ' </thead>' . PHP_EOL;
|
$html .= ' </thead>' . PHP_EOL;
|
||||||
}
|
}
|
||||||
|
|
||||||
// </tbody> ?
|
|
||||||
if ($row == $tbodyEnd) {
|
|
||||||
$html .= ' </tbody>' . PHP_EOL;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
$html .= $this->_extendRowsForChartsAndImages($sheet, $row);
|
$html .= $this->_extendRowsForChartsAndImages($sheet, $row);
|
||||||
|
|
||||||
|
// Close table body.
|
||||||
|
$html .= ' </tbody>' . PHP_EOL;
|
||||||
|
|
||||||
// Write table footer
|
// Write table footer
|
||||||
$html .= $this->_generateTableFooter();
|
$html .= $this->_generateTableFooter();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user