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 untrusted user: label
GPG Key ID: B37E62D143879B36

View File

@ -161,7 +161,7 @@ class RepoRSS:
author = meta['author'] author = meta['author']
desc = meta['text'] desc = meta['text']
changelog += f'{cl_date} - {author}\n{desc}\n\n' 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 += '<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)))) description += xmlescape('<pre>{}</pre>'.format(xmlescape(to_unicode(changelog))))
base64_description = to_base64(description) base64_description = to_base64(description)