合并分支 'akun' 到 'master'
Akun 查看合并请求 !1725
正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -339,8 +339,8 @@ class ProjectUpdate extends Command | @@ -339,8 +339,8 @@ class ProjectUpdate extends Command | ||
| 339 | $item['ttile'] = $this->special2str($item['ttile'] ?? ''); | 339 | $item['ttile'] = $this->special2str($item['ttile'] ?? ''); |
| 340 | //短描述处理换行 | 340 | //短描述处理换行 |
| 341 | $intro = $item['short_description'] ?? ''; | 341 | $intro = $item['short_description'] ?? ''; |
| 342 | - if (strpos($intro, "\r\n\r\n") !== false) { | ||
| 343 | - $intro = "<p>" . str_replace("\r\n\r\n", "</p><p>", $intro) . "</p>"; | 342 | + if (strpos($intro, "\r\n") !== false) { |
| 343 | + $intro = "<p>" . str_replace("\r\n", "</p><p>", $intro) . "</p>"; | ||
| 344 | } | 344 | } |
| 345 | //详情 | 345 | //详情 |
| 346 | $content = $item['content'] ?? ''; | 346 | $content = $item['content'] ?? ''; |
-
请 注册 或 登录 后发表评论