

@register.filter
@stringfilter
def title(value):
    "\n    A slightly better title template filter.\n\n    Same as Django's builtin `~django.template.defaultfilters.title` filter,\n    but operates on individual words and leaves words unchanged if they already\n    have a capital letter.\n    "
    title_word = (lambda w: (w if RE_UPPERCASE.search(w) else old_title(w)))
    return re.sub('(\\S+)', (lambda m: value(m.group(0))), value)

dataset/ETHPy150Open bradleyayers/django-tables2/django_tables2/templatetags/django_tables2.py title/VarMisuse@54/148 `title_word`->`value`