Cannot save workbook with diagonal border.

Issue #584 resolved
panda-34
created an issue

I create a new file in Excel 2013, make a diagonal border on a cell and save the file. openpyxl loads the workbook, but when saving it the error is produced: File "C:\Lib\Python\lib\xml\etree\ElementTree.py", line 1081, in _escape_attrib if "&" in text: TypeError: argument of type 'bool' is not iterable.

The error happens when trying to serialize xl / styles.xml / styleSheet / borders / border / "diagonalDown" attribute which has value True, though in original file it has value "1". python 3.4, 3.5 openpyxl 2.3, 2.4

Comments (2)

  1. Log in to comment