masaccio / numbers-parser

Python module for parsing Apple Numbers .numbers files
MIT License
208 stars 15 forks source link

Table.merge_ranges extracts merges when none exist #77

Closed masaccio closed 8 months ago

masaccio commented 8 months ago

Describe the bug Table.merge_ranges does not always produce valid data

To Reproduce

from numbers_parser import Document

doc = Document("tests/data/test-all-formulas.numbers")
for sheet in doc.sheets:
    for table in sheet.tables:
        print(f"{sheet.name}:{table.name} -", table.merge_ranges)

Expected behavior

tests/data/test-all-formulas.numbers contains no merged cells; all ranges should be empty lists.

masaccio commented 8 months ago

Fixed in v4.10.2