Fix for missing borders.

Created originally on Bitbucket by mschieder (Magnus Schieder)

Changesets for this Pull Request have not been imported, because it had been already declined on Bitbucket. Marked as closed by the import user.

See https://bitbucket.org/openpyxl/openpyxl/issues/988/merge-cells-loosing-style-information

When dealing with merged Cells, Excel and Libreoffice create phantom cells to keep styling information for merged cells. This is unwanted behaviour. Openpyxl eleminates those phantom cells.

In order to keep the necessary information, we introduce a MergedCell object, which carries the styling information for the export and have a defined value of None. The top left cell of the cells which are merged contains the necessary information for the merged cells and is converted to a MergedCellRange. MergedCellRange handles the styling and delegates every style change to the according MergedCell.

Merge request reports

Loading