From 67bc7007aa58cbb44801f3df1d1f98ae3f8e2c64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cle=CC=81ment=20Blanco?= Date: Fri, 14 Jul 2017 16:05:46 +0100 Subject: [PATCH] Support new lines for book/chapter descriptions Avoid ignoring new lines when renderring the book/chapter descriptions on their respective detailed views. --- resources/views/books/show.blade.php | 6 +++--- resources/views/chapters/show.blade.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/views/books/show.blade.php b/resources/views/books/show.blade.php index ddbe7a0a4..d5832b708 100644 --- a/resources/views/books/show.blade.php +++ b/resources/views/books/show.blade.php @@ -56,7 +56,7 @@

{{$book->name}}

-

{{$book->description}}

+

{!! nl2br($book->description) !!}


@@ -118,7 +118,7 @@
- +

{{ trans('entities.recent_activity') }}

@include('partials/activity-list', ['activity' => Activity::entityActivity($book, 20, 0)]) @@ -127,4 +127,4 @@
-@stop \ No newline at end of file +@stop diff --git a/resources/views/chapters/show.blade.php b/resources/views/chapters/show.blade.php index d4126cbcc..9b549cfbd 100644 --- a/resources/views/chapters/show.blade.php +++ b/resources/views/chapters/show.blade.php @@ -52,7 +52,7 @@

{{ $chapter->name }}

-

{{ $chapter->description }}

+

{!! nl2br($chapter->description) !!}

@if(count($pages) > 0)