diff --git a/src/calibre/ebooks/conversion/plugins/epub_output.py b/src/calibre/ebooks/conversion/plugins/epub_output.py index 254c50dbe6..90af27d4d2 100644 --- a/src/calibre/ebooks/conversion/plugins/epub_output.py +++ b/src/calibre/ebooks/conversion/plugins/epub_output.py @@ -379,6 +379,9 @@ class EPUBOutput(OutputFormatPlugin): for x in XPath('//h:a[@name]')(body): if not x.get('id', False): x.set('id', x.get('name')) + # The delightful epubcheck has started complaining about tags that + # have name attributes. + x.attrib.pop('name') # Replace
that are children of as ADE doesn't handle them for br in XPath('./h:br')(body):