Add Xls to Sample 25

This commit is contained in:
oleibman
2026-08-10 07:14:22 -07:00
parent e3af14f762
commit 50654a3e69
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ $drawing->setCoordinates('C5');
$helper->write(
$spreadsheet,
__FILE__,
['Xlsx', 'Html', 'Ods'],
['Xlsx', 'Html', 'Ods', 'Xls'],
false,
function (BaseWriter $writer): void {
if (method_exists($writer, 'writeAllSheets')) {
@@ -484,6 +484,9 @@ class Worksheet extends BIFFwriter
[$column, $row] = Coordinate::indexesFromString($coordinate);
$url = $hyperlink->getUrl();
if ($url === '') {
continue;
}
if ($url[0] === '#') {
$url = "internal:$url";
} elseif (str_starts_with($url, 'sheet://')) {