diff --git a/kallithea/lib/helpers.py b/kallithea/lib/helpers.py --- a/kallithea/lib/helpers.py +++ b/kallithea/lib/helpers.py @@ -1256,7 +1256,7 @@ def urlify_text(s, truncate=None, styliz Extract urls from text and make literal html links out of them """ if truncate is not None: - s = truncatef(s, truncate) + s = truncatef(s, truncate, whole_word=True) s = html_escape(s) if stylize: s = desc_stylize(s)