fix breakline

This commit is contained in:
felinae98 2021-07-07 18:43:00 +08:00
parent 0fae891def
commit ae59674c8c
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610

View File

@ -99,11 +99,11 @@ class Post:
await self._pic_merge()
msgs = []
text = ''
if self.text:
text += '{}'.format(self.text if len(self.text) < 500 else self.text[:500] + '...')
text += '\n来源: {}'.format(self.target_type)
if self.target_name:
text += ' {}'.format(self.target_name)
if self.text:
text += ' \n{}'.format(self.text if len(self.text) < 500 else self.text[:500] + '...')
text += '来源: {}'.format(self.target_type)
if self._use_pic():
msgs.append(await parse_text(text))
if not self.target_type == 'rss' and self.url: