diff --git a/src/data/keyword.cpp b/src/data/keyword.cpp index 7abfa1dd..f2784208 100644 --- a/src/data/keyword.cpp +++ b/src/data/keyword.cpp @@ -483,7 +483,24 @@ String KeywordDatabase::expand(const String& text, size_t start = untagged_to_index(s, start_u, true), end = untagged_to_index(s, start_u + len_u, true); if (start == end) continue; // don't match empty keywords - result += s.substr(0, start); + // copy text before keyword + result += remove_tag(s.substr(0, start), _(" + } else if (is_substr(s, j, _("