From b8942672378fccc7d557dfc2e40a4d90aecf7a0d Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 28 Jun 2014 15:53:29 +0200 Subject: [Lib] Revert libraries to original status (remove all cosmetics optimizations) --- module/lib/jinja2/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/lib/jinja2/utils.py') 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 '' -- cgit v1.2.3