From 31ccd4f63272446568c454d925427938aae5ba82 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 21 Jan 2019 15:28:51 +0530 Subject: [PATCH] Forgot the @ when matching on data-lnum --- src/calibre/gui2/tweak_book/boss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/boss.py b/src/calibre/gui2/tweak_book/boss.py index bac2180a4c..ba560e08a8 100644 --- a/src/calibre/gui2/tweak_book/boss.py +++ b/src/calibre/gui2/tweak_book/boss.py @@ -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