WeCenter 引用部分的第一行显示为空行及引用部分后面多一行空行
🏷️ WeCenter
在 models/question.php 的 save_question
和 update_question
方法中增加了下面两行代码,以替换多余的换行符。
php
$question_detail = str_replace(array("<blockquote>\r\n","[quote]\n","[quote]\r"), "[quote]", $question_detail);
$question_detail = str_replace(array("</blockquote>\r\n","[/quote]\n","[/quote]\r"), "[/quote]", $question_detail);
发布文章:models/publish.php=>publish_article
修改文章:models/article.php=>update_article