Fix #8225 (Ampersands and Saved Searches)

This commit is contained in:
Kovid Goyal 2011-01-07 11:33:55 -07:00
parent 868fa550ee
commit 5774429f78

View File

@ -128,9 +128,9 @@ def CATALOG_ENTRY(item, item_kind, base_href, version, updated,
count = '' count = ''
if item.category == 'authors' and \ if item.category == 'authors' and \
tweaks['categories_use_field_for_author_name'] == 'author_sort': tweaks['categories_use_field_for_author_name'] == 'author_sort':
name = xml(item.sort) name = item.sort
else: else:
name = xml(item.name) name = item.name
return E.entry( return E.entry(
TITLE(name + ('' if not add_kind else ' (%s)'%item_kind)), TITLE(name + ('' if not add_kind else ' (%s)'%item_kind)),
ID(id_), ID(id_),