NOW MANAGED ON CODEBERG
Support new lines for book/chapter descriptions
Clément Blanco67bc7007aa58
diff --git a/resources/views/books/show.blade.php b/resources/views/books/show.blade.phpindex ddbe7a0a4..d5832b708 100644--- a/resources/views/books/show.blade.php+++ b/resources/views/books/show.blade.php@@ -56,7 +56,7 @@<h1>{{$book->name}}</h1><div class="book-content" v-if="!searching">- <p class="text-muted" v-pre>{{$book->description}}</p>+ <p class="text-muted" v-pre>{!! nl2br($book->description) !!}</p><div class="page-list" v-pre><hr>@@ -118,7 +118,7 @@<button v-if="searching" v-cloak class="text-neg" v-on:click="clearSearch()" type="button"><i class="zmdi zmdi-close"></i></button></form></div>-+<div class="activity"><h3>{{ trans('entities.recent_activity') }}</h3>@include('partials/activity-list', ['activity' => Activity::entityActivity($book, 20, 0)])@@ -127,4 +127,4 @@</div></div>-@stop\ No newline at end of file+@stopdiff --git a/resources/views/chapters/show.blade.php b/resources/views/chapters/show.blade.phpindex d4126cbcc..9b549cfbd 100644--- a/resources/views/chapters/show.blade.php+++ b/resources/views/chapters/show.blade.php@@ -52,7 +52,7 @@<div class="col-md-7"><h1>{{ $chapter->name }}</h1><div class="chapter-content" v-if="!searching">- <p class="text-muted">{{ $chapter->description }}</p>+ <p class="text-muted">{!! nl2br($chapter->description) !!}</p>@if(count($pages) > 0)<div class="page-list">