Fix #2670 (Xpath chapter detection wizard not working)

This commit is contained in:
Kovid Goyal 2009-06-20 09:10:41 -07:00
parent 7e2dd6e5b9
commit 6459a6c256

View File

@ -31,6 +31,8 @@ class WizardWidget(QWidget, Ui_Form):
q = '[re:test(@%s, "%s", "i")]'%(attr, val) q = '[re:test(@%s, "%s", "i")]'%(attr, val)
else: else:
q = '[@%s]'%attr q = '[@%s]'%attr
elif val:
q = '[re:test(., "%s", "i")]'%(val)
expr = '//'+tag + q expr = '//'+tag + q
return expr return expr