Ticket #5025: 5025.3.diff
File 5025.3.diff, 755 bytes (added by , 13 years ago) |
---|
-
django/template/defaultfilters.py
254 254 length = int(arg) 255 255 except ValueError: # Invalid literal for int(). 256 256 return value # Fail silently. 257 return Truncator(value).chars( value,length)257 return Truncator(value).chars(length) 258 258 truncatechars.is_safe = True 259 259 truncatechars = stringfilter(truncatechars) 260 260 … … 922 922 register.filter(striptags) 923 923 register.filter(time) 924 924 register.filter(title) 925 register.filter(truncatechars) 925 926 register.filter(truncatewords) 926 927 register.filter(truncatewords_html) 927 928 register.filter(unordered_list)