write boolean value according to http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#datatype-boolean instead of just "1" for true or "" for false;

This commit is contained in:
Oded Arbel 2021-02-07 11:29:01 +02:00 committed by Adrien Loison
parent c29d1877b8
commit ad913f0100

View File

@ -197,7 +197,8 @@ class WorksheetManager implements WorksheetManagerInterface
$data .= '</table:table-cell>'; $data .= '</table:table-cell>';
} elseif ($cell->isBoolean()) { } elseif ($cell->isBoolean()) {
$data .= ' office:value-type="boolean" calcext:value-type="boolean" office:boolean-value="' . $cell->getValue() . '">'; $value = $cell->getValue() ? 'true' : 'false';
$data .= ' office:value-type="boolean" calcext:value-type="boolean" office:boolean-value="' . $value . '">';
$data .= '<text:p>' . $cell->getValue() . '</text:p>'; $data .= '<text:p>' . $cell->getValue() . '</text:p>';
$data .= '</table:table-cell>'; $data .= '</table:table-cell>';
} elseif ($cell->isNumeric()) { } elseif ($cell->isNumeric()) {