Codebase list sugar-read-activity / 9a5a086
Fix search in epub files Read use the search case insensitive, and there are not UI to change that, but the search in the html files was done case sensitive, then in some cases, the results were different than expected. Gonzalo Odiard 8 years ago
1 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
6666 tags = body.findChildren(True)
6767 for tag in tags:
6868 if tag.string is not None:
69 if tag.string.find(self.obj._text) > -1:
69 if tag.string.lower().find(self.obj._text.lower()) > -1:
7070 return True
7171
7272 return False
246246
247247 def __init__(self, document, start_page, n_pages, text,
248248 case_sensitive=False):
249 """
250 Only case_sensitive=False is implemented
251 """
249252 GObject.GObject.__init__(self)
250253
251254 self._finished = False