diff --git a/src/calibre/gui2/convert/xpath_wizard.py b/src/calibre/gui2/convert/xpath_wizard.py index d2a0d55a48..9b8e44ddaa 100644 --- a/src/calibre/gui2/convert/xpath_wizard.py +++ b/src/calibre/gui2/convert/xpath_wizard.py @@ -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