aardappel / treesheets

TreeSheets : Free Form Data Organizer (see strlen.com/treesheets)
zlib License
2.49k stars 184 forks source link

Adapt XML exporter logic to the simpler XML importer logic #657

Closed tobiolo closed 1 month ago

tobiolo commented 1 month ago

The XML importer uses void System::FillXML(Cell*, wxXMLNode*, bool) that does not make use of inheritance by comparing with the parent cell, while the XML exporter in wxString Cell::ToText(int, const Selection&, int, Document*, bool) makes use of inheritance to avoid emitting repeating attribute values.

This commit adapts the XML exporter to the simpler logic of the XML importer.

aardappel commented 1 month ago

Ah, and this also fixes the wrong background colors?

tobiolo commented 1 month ago

Ah, and this also fixes the wrong background colors?

Yes, it seems to do so.