diff options
-rwxr-xr-x | epubgrep.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epubgrep.py b/epubgrep.py index 718554a..b6c3720 100755 --- a/epubgrep.py +++ b/epubgrep.py @@ -95,6 +95,7 @@ def _metadata_search(mdata: dict, sre: re.Pattern, fname: str, :param: col: should we colorize the output """ out = '' + title = '' decoded_line = mdata.get('description') tags = mdata.get('subject') @@ -104,7 +105,6 @@ def _metadata_search(mdata: dict, sre: re.Pattern, fname: str, title = f'\n{fname}' out += title + '\n' out += _colorize_found(decoded_line, res, col) - title = '' if tags: for tag in tags: res = sre.search(tag) |