Support new lines for book/chapter descriptions
Avoid ignoring new lines when renderring the book/chapter descriptions on their respective detailed views.
This commit is contained in:
parent
2ea7e10923
commit
67bc7007aa
|
@ -56,7 +56,7 @@
|
||||||
|
|
||||||
<h1>{{$book->name}}</h1>
|
<h1>{{$book->name}}</h1>
|
||||||
<div class="book-content" v-if="!searching">
|
<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>
|
<div class="page-list" v-pre>
|
||||||
<hr>
|
<hr>
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<h1>{{ $chapter->name }}</h1>
|
<h1>{{ $chapter->name }}</h1>
|
||||||
<div class="chapter-content" v-if="!searching">
|
<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)
|
@if(count($pages) > 0)
|
||||||
<div class="page-list">
|
<div class="page-list">
|
||||||
|
|
Loading…
Reference in New Issue