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)

This commit is contained in:
Kovid Goyal 2021-01-19 21:25:02 +05:30
parent 0727fb7793
commit 48e36065a4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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: