From 48e36065a4a8ab80d5255b33c38e9ea7bcc140c4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 19 Jan 2021 21:25:02 +0530 Subject: [PATCH] PDF Output: When converting fixed layout input documents fix anchors inserted for navigation sometimes being rendered as blue boxes. Fixes #1911466 [Private bug](https://bugs.launchpad.net/calibre/+bug/1911466) --- src/calibre/ebooks/pdf/html_writer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/ebooks/pdf/html_writer.py b/src/calibre/ebooks/pdf/html_writer.py index 548f8d7415..5f2470ea17 100644 --- a/src/calibre/ebooks/pdf/html_writer.py +++ b/src/calibre/ebooks/pdf/html_writer.py @@ -444,7 +444,8 @@ def add_anchors_markup(root, uuid, anchors): num = next(c) a = div.makeelement( XHTML('a'), href='#' + anchor, - style='min-width: 10px !important; min-height: 10px !important; border: solid 1px !important;' + style='min-width: 10px !important; min-height: 10px !important;' + ' border: solid 1px rgba(0, 0, 0, 0) !important; text-decoration: none !important' ) a.text = a.tail = ' ' if num % 8 == 0: