mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-29 20:36:34 +02:00
Fix #2670 (Xpath chapter detection wizard not working)
This commit is contained in:
parent
7e2dd6e5b9
commit
6459a6c256
1 changed files with 2 additions and 0 deletions
|
|
@ -31,6 +31,8 @@ def xpath(self):
|
|||
q = '[re:test(@%s, "%s", "i")]'%(attr, val)
|
||||
else:
|
||||
q = '[@%s]'%attr
|
||||
elif val:
|
||||
q = '[re:test(., "%s", "i")]'%(val)
|
||||
expr = '//'+tag + q
|
||||
return expr
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue