Skip to content

Commit

Permalink
bugfix: 修复BK-发送通知插件中邮件通知内容不换行的问题 TencentBlueKing#132
Browse files Browse the repository at this point in the history
  • Loading branch information
pagezz-canway committed Apr 14, 2019
1 parent 2d3b7a7 commit febc2d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pipeline_plugins/components/collections/sites/open/bk.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ def _email_args(self, receivers, title, content):
return {
'receiver__username': receivers,
'title': title,
'content': content
# 保留通知内容中的换行和空格
'content': u"<pre>%s</pre>" % content
}

def _weixin_args(self, receivers, title, content):
Expand Down

0 comments on commit febc2d8

Please sign in to comment.