Ticket #4749: defaultfilters.py.diff
File defaultfilters.py.diff, 448 bytes (added by , 17 years ago) |
---|
-
defaultfilters.py
old new 141 141 142 142 def title(value): 143 143 "Converts a string into titlecase" 144 return re.sub("([a-z])'([A-Z])", lambda m: m.group(0).lower(), value. title())144 return re.sub("([a-z])'([A-Z])", lambda m: m.group(0).lower(), value.decode('utf-8').title()) 145 145 title = stringfilter(title) 146 146 147 147 def truncatewords(value, arg):