Edit Book: Check Book: Fix incorrect links that consist only of an anchor and no filename not being detected. Fixes #1485670 [Editor: Check book tool fails to check "#anchor" links](https://bugs.launchpad.net/calibre/+bug/1485670)

This commit is contained in:
Kovid Goyal 2015-08-18 08:16:54 +05:30
parent 4e163a7aa2
commit 809ed8ec48

View File

@ -213,6 +213,9 @@ def check_mimetypes(container):
return errors
def check_link_destination(container, dest_map, name, href, a, errors):
if href.startswith('#'):
tname = name
else:
try:
tname = container.href_to_name(href, name)
except ValueError: