mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-20 14:12:20 -04:00
Fix #2670 (Xpath chapter detection wizard not working)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user