update rss to do a break on description

This commit is contained in:
Louis Abel 2023-09-20 17:07:29 -07:00
parent e68f40bf23
commit c9ccffde40
Signed by: label
GPG Key ID: B37E62D143879B36
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ class RepoRSS:
author = meta['author']
desc = meta['text']
changelog += f'{cl_date} - {author}\n{desc}\n\n'
description = '<p><strong>{}</strong> - {}</p>\n\n'.format(xmlescape(package.name), xmlescape(package.summary))
description = '<p><strong>{}</strong> - {}{}</p>\n\n'.format(xmlescape(package.name), xmlescape(package.summary), xmlescape("<br />"))
description += '<p>%s</p>\n\n<p><strong>Change Log:</strong></p>\n\n' % xmlescape(to_unicode(pkg_description.replace("\n", "<br />\n")))
description += xmlescape('<pre>{}</pre>'.format(xmlescape(to_unicode(changelog))))
base64_description = to_base64(description)