mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-09-05 00:02:24 +08:00
fix breakline
This commit is contained in:
parent
0fae891def
commit
ae59674c8c
@ -99,11 +99,11 @@ class Post:
|
|||||||
await self._pic_merge()
|
await self._pic_merge()
|
||||||
msgs = []
|
msgs = []
|
||||||
text = ''
|
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:
|
if self.target_name:
|
||||||
text += ' {}'.format(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():
|
if self._use_pic():
|
||||||
msgs.append(await parse_text(text))
|
msgs.append(await parse_text(text))
|
||||||
if not self.target_type == 'rss' and self.url:
|
if not self.target_type == 'rss' and self.url:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user