minor optimization
parent
08b0adcb97
commit
543cf55fb2
|
@ -39,11 +39,9 @@ class CoverPages(object):
|
|||
for row in rows:
|
||||
url = '/' + row.filename
|
||||
href = '/ebooks/%d' % row.pk
|
||||
title = gg.xmlspecialchars (row.title)
|
||||
title = gg.xmlspecialchars (row.title) # handles <,>,&
|
||||
#Shortening long titles for latest covers
|
||||
title = title.replace('"', '"')
|
||||
title = title.replace('<', '<')
|
||||
title = title.replace('>', '>')
|
||||
title = title.replace("'", ''')
|
||||
short_title = title
|
||||
title_len = len(title)
|
||||
|
|
Loading…
Reference in New Issue