diff options
Diffstat (limited to 'module/lib/jinja2/utils.py')
-rw-r--r-- | module/lib/jinja2/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/lib/jinja2/utils.py b/module/lib/jinja2/utils.py index 186fc6c44..7b77b8eb7 100644 --- a/module/lib/jinja2/utils.py +++ b/module/lib/jinja2/utils.py @@ -269,7 +269,7 @@ def urlize(text, trim_url_limit=None, nofollow=False): attribute. """ trim_url = lambda x, limit=trim_url_limit: limit is not None \ - and (x[:limit] + (len(x) >= limit and '...' + and (x[:limit] + (len(x) >=limit and '...' or '')) or x words = _word_split_re.split(unicode(escape(text))) nofollow_attr = nofollow and ' rel="nofollow"' or '' |