From a7580f0ce004a8a31a1f8e67217138924a1180b5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 14 Jun 2013 08:10:45 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/docx/to_html.py | 2 ++ 1 file changed, 2 insertions(+) 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):