Changeset - fd6bde2325d8
[Not reviewed]
default
0 1 0
domruf - 10 years ago 2016-02-26 18:59:34
dominikruf@gmail.com
helpers: don't truncate words when when truncating texts for urlification

This would especially cause confusion when URLs were truncated.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/helpers.py
Show inline comments
 
@@ -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)
0 comments (0 inline, 0 general)