Merge branch 'work-in-progress' of github.com:gutenbergtools/autocat3 into work-in-progress

Conflicts:
	CoverPages.py
work-in-progress
autocat 2020-05-25 11:33:17 -04:00
commit 4eaa3bcc2f
1 changed files with 1 additions and 2 deletions

View File

@ -46,7 +46,6 @@ class CoverPages (object):
url = '/' + row.filename
href = '/ebooks/%d' % row.pk
title = gg.xmlspecialchars (row.title)
title = title.replace('\"','"')
#Shortening long titles for latest covers
short_title = title
short_title = short_title.replace ('"', '"')
@ -58,7 +57,7 @@ class CoverPages (object):
if(title_len>80):
short_title = textwrap.wrap(short_title,80)[0]
s += """<a href="{href}" title="{title}" target="_top"><div class="cover_image">
s += """<a href="{href}" title="{title}" target="_top"><div class="cover_image">
<div class="cover_img"><img src="{url}" alt="{title}" title="{title}" draggable="false">
</div><div class="cover_title"><h5>{short_title}</h5></div></div></a>\n""".format (
url = url, href = href, title = title, short_title = short_title, size = size)