backoffice: export ods with a single empty cell if there's nothing (#55330) #715
Loading…
Reference in New Issue
No description provided.
Delete Branch "wip/55330-ods-export-no-cells"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -191,1 +194,4 @@
row = ET.SubElement(root, '{%s}table-row' % NS['table'])
if not self.cells.get(i).keys():
# no columns here, add a single empty cell
ET.SubElement(row, '{%s}table-cell' % NS['table'])
J'aurais pu plutôt que le self.cells[0] = {} ajouter le nécessaire pour qu'une cellule vide soit vue ici mais j'ai fait ainsi pour qu'une autre situation où ça serait vide soit traitée, si jamais ça arrivait. (j'ai cherché dans le code une possibilité de le provoquer mais je n'ai pas trouvé).
WIP: backoffice: export ods with a single empty cell if there's nothing (#55330)to backoffice: export ods with a single empty cell if there's nothing (#55330)