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 @@ 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