Loading workbook fails on borders style copy in shared_styles

Issue #453 closed
caye17
created an issue

Loading of a workbook fails in workbook/workbook.py in shared_styles function on borders style copy

border = self._borders[sid.fill]

it seems it should rather be something like:

border = self._borders[sid.border]

but that ends up in infinite recursive loop

Comments (9)

  1. CharlieC

    What application wrote this? These are the border definitions:

        <borders count="2">
            <border>
                <left/>
                <right/>
                <top/>
                <bottom/>
                <diagonal/>
            </border>
            <border>
                <left/>
                <right/>
                <top/>
                <bottom/>
                <diagonal/>
            </border>
        </borders>
    

    A duplicate of the default border with both referenced. I suspect the problem will be related to deduplication we apply.

  2. caye17 reporter

    Confirmed it works correctly in 2.3 The file origin is a mystery as it dates back a couple of years - I would bet it came from Excel 2007. The one attached here I have saved in MS Excel 2010

  3. Log in to comment