xls:attribute error in FB2 files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In Fb2 files, in the last versions of calibre (it used to work without any problem) if there's a paragraph like:
<p style="
in which there's a "style" and an "id" together, the calibre viewer shows and error when trying to open the book, and also the calibre program when trying to convert it to other formats.
The error message is:
"xls:attribute: Cannot add attributes to an element if children have been already added to the element"
and the details of the error are:
calibre, version 1.7.0
ERROR: No se pudo abrir el libro electrónico: xsl:attribute: Cannot add attributes to an element if children have been already added to the element.
Traceback (most recent call last):
File "site-packages\
File "threading.py", line 761, in run
File "site-packages\
File "site-packages\
File "site-packages\
File "xslt.pxi", line 596, in lxml.etree.
XSLTApplyError: xsl:attribute: Cannot add attributes to an element if children have been already added to the element.
Thank you for your work, you're great.
Odinokij.
Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.
status fixreleased