From 50c95494b56741cfbac97441fb5823a851d16ab6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 1 Jul 2022 18:49:15 +0530 Subject: [PATCH] Fix #1980492 [Reports' links error](https://bugs.launchpad.net/calibre/+bug/1980492) --- src/calibre/ebooks/oeb/polish/report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/polish/report.py b/src/calibre/ebooks/oeb/polish/report.py index a70c55c4bd..018acc28f3 100644 --- a/src/calibre/ebooks/oeb/polish/report.py +++ b/src/calibre/ebooks/oeb/polish/report.py @@ -165,13 +165,13 @@ def links_data(container, *args): for a in link_pat(root): href = a.get('href') text = description_for_anchor(a) + location = LinkLocation(name, a.sourceline, href) if href: base, frag = href.partition('#')[0::2] if frag and not base: dest = name else: dest = safe_href_to_name(container, href, name) - location = LinkLocation(name, a.sourceline, href) links.append((base, frag, dest, location, text)) else: links.append(('', '', None, location, text))