mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Just use a space char for links
This commit is contained in:
parent
1e9517f40f
commit
4132a874d9
@ -282,10 +282,10 @@ def add_anchors_markup(root, uuid, anchors):
|
||||
body.append(div)
|
||||
for i, anchor in enumerate(anchors):
|
||||
div.append(div.makeelement(XHTML('a'), href='#' + anchor))
|
||||
div[-1].text = '{}'.format(i)
|
||||
div[-1].text = '\xa0'
|
||||
div[-1].tail = ' '
|
||||
div.append(div.makeelement(XHTML('a'), href='#' + uuid))
|
||||
div[-1].text = 'top'
|
||||
div[-1].text = '\xa0'
|
||||
div[-1].tail = ' '
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user