Commit a57b8177 authored by Michal Čihař's avatar Michal Čihař

Do not try to highlight empty string

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 6efc306d
...@@ -113,7 +113,7 @@ def format_translation(value, language=None, diff=None, search_match=None, ...@@ -113,7 +113,7 @@ def format_translation(value, language=None, diff=None, search_match=None,
value = html_diff(diffvalue, value) value = html_diff(diffvalue, value)
# Format search term # Format search term
if search_match is not None: if search_match:
# Since the search ignored case, we need to highlight any # Since the search ignored case, we need to highlight any
# combination of upper and lower case we find. This is too # combination of upper and lower case we find. This is too
# advanced for str.replace(). # advanced for str.replace().
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment