diff --git a/src/calibre/ebooks/docx/to_html.py b/src/calibre/ebooks/docx/to_html.py index 2c84173672..ad26f91d46 100644 --- a/src/calibre/ebooks/docx/to_html.py +++ b/src/calibre/ebooks/docx/to_html.py @@ -422,6 +422,8 @@ class Convert(object): continue self.log.warn('Hyperlink with unknown target (rid=%s, anchor=%s), ignoring' % (rid, anchor)) + # hrefs that point nowhere give epubcheck a hernia. The element + # should be styled explicitly by Word anyway. # span.set('href', '#') def convert_run(self, run):