zhoulj 3 سال پیش
والد
کامیت
26cf0eff23
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app/Http/Controllers/QuickApp/Book/ChapterController.php

+ 1 - 1
app/Http/Controllers/QuickApp/Book/ChapterController.php

@@ -494,7 +494,7 @@ class ChapterController extends BaseController
         $chapter->content = str_replace($qian,$hou,$chapter->content);
         $chapter->content = str_replace($qian,$hou,$chapter->content);
         // 2换行变1换行
         // 2换行变1换行
         $chapter->content = str_replace("\n\n", "\n", $chapter->content);
         $chapter->content = str_replace("\n\n", "\n", $chapter->content);
-        $chapter->content = str_replace("\n\n", "\n", $chapter->content);
+        $chapter->content = str_replace("\r\r", "\r", $chapter->content);
         
         
 //         \Log::info('getChapter_chapter:'.$bid.' cid:'.$cid);
 //         \Log::info('getChapter_chapter:'.$bid.' cid:'.$cid);
 //         \Log::info($chapter->content);
 //         \Log::info($chapter->content);