mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #2670 (Xpath chapter detection wizard not working)
This commit is contained in:
parent
7e2dd6e5b9
commit
6459a6c256
@ -31,6 +31,8 @@ class WizardWidget(QWidget, Ui_Form):
|
||||
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…
x
Reference in New Issue
Block a user