make the docstrings look better in reST

This commit is contained in:
Jeff Balogh 2009-10-23 10:17:48 -07:00
Родитель 0a8581ccae
Коммит ecb2400e90
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -30,11 +30,11 @@ def datetime(t, format=_('%B %d, %Y')):
@register.filter
def selected(a, b, text='selected'):
"""Return ``text`` if a == b."""
"""Return ``text`` if ``a == b``."""
return jinja2.Markup(text if a == b else '')
@register.filter
def class_selected(a, b):
"""Return 'class="selected"' if a == b."""
"""Return ``'class="selected"'`` if ``a == b``."""
return selected(a, b, 'class="selected"')