Move description to end of comments for news downloads

This commit is contained in:
Kovid Goyal 2017-05-26 14:06:57 +05:30
parent c2e4e66dc5
commit a136220f88
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1430,11 +1430,11 @@ class BasicNewsRecipe(Recipe):
aseen.add(a.title)
article_titles.append(force_unicode(a.title, 'utf-8'))
mi.comments = self.description
if not isinstance(mi.comments, unicode):
mi.comments = mi.comments.decode('utf-8', 'replace')
mi.comments += ('\n\n' + _('Articles in this issue: ') + '\n' +
'\n\n'.join(article_titles))
desc = self.description
if not isinstance(desc, unicode):
desc = desc.decode('utf-8', 'replace')
mi.comments = (_('Articles in this issue:') + '\n\n' +
'\n\n'.join(article_titles)) + '\n\n' + desc
language = canonicalize_lang(self.language)
if language is not None: