mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Forgot the @ when matching on data-lnum
This commit is contained in:
parent
09345a964f
commit
31ccd4f632
@ -1422,7 +1422,7 @@ class Boss(QObject):
|
||||
lnum = node.get('data-lnum')
|
||||
if lnum:
|
||||
tags_before = []
|
||||
for tag in root.xpath('//*[data-lnum="%s"]' % lnum):
|
||||
for tag in root.xpath('//*[@data-lnum="%s"]' % lnum):
|
||||
tags_before.append(barename(tag))
|
||||
if tag is node:
|
||||
break
|
||||
|
Loading…
x
Reference in New Issue
Block a user