mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-02 22:36:06 +01:00
...
This commit is contained in:
parent
efb222c534
commit
d6b446de72
1 changed files with 1 additions and 1 deletions
|
|
@ -459,7 +459,7 @@ def __call__(self, html, remove_special_chars=None,
|
|||
try:
|
||||
search_re = re.compile(search_pattern)
|
||||
replace_txt = getattr(self.extra_opts, replace, '')
|
||||
if replace_txt == None:
|
||||
if not replace_txt:
|
||||
replace_txt = ''
|
||||
rules.insert(0, (search_re, replace_txt))
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Reference in a new issue