remove extra spaces (Blade Template)
This commit is contained in:
parent
895d0178cb
commit
ef4098af01
|
@ -5,7 +5,7 @@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
@section('sidebar') This is the {{ $mater }} sidebar.
|
@section('sidebar') This is the {{ $mater }} sidebar.
|
||||||
@show
|
@show
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
@ -13,17 +13,17 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@component('alert')
|
@component('alert')
|
||||||
@slot('title') Forbidden
|
@slot('title') Forbidden
|
||||||
@endslot
|
@endslot
|
||||||
<strong>Whoops!</strong> Something went wrong!
|
<strong>Whoops!</strong> Something went wrong!
|
||||||
@endcomponent
|
@endcomponent
|
||||||
|
|
||||||
@foreach ($users as $user)
|
@foreach ($users as $user)
|
||||||
@if ($user->type == 1)
|
@if ($user->type == 1)
|
||||||
@continue
|
@continue
|
||||||
@endif
|
@endif
|
||||||
<li>{{ $user->name }}</li>
|
<li>{{ $user->name }}</li>
|
||||||
@if ($user->number == 5)
|
@if ($user->number == 5)
|
||||||
@break
|
@break
|
||||||
@endif
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
|
@ -55,7 +55,7 @@ module.exports = class JSBeautify extends Beautifier
|
||||||
when "Blade"
|
when "Blade"
|
||||||
beautifyHTML = require("js-beautify").html
|
beautifyHTML = require("js-beautify").html
|
||||||
# pre script (Workaround)
|
# pre script (Workaround)
|
||||||
text = text.replace(/\@(?!yield)([^\n\s]*)/ig, "<blade $1 />")
|
text = text.replace(/\@(?!yield)([^\n\s]*)/ig, "<blade $1/>")
|
||||||
text = beautifyHTML(text, options)
|
text = beautifyHTML(text, options)
|
||||||
# post script (Workaround)
|
# post script (Workaround)
|
||||||
text = text.replace(/<blade ([^\n]*)\/>/ig, "@$1")
|
text = text.replace(/<blade ([^\n]*)\/>/ig, "@$1")
|
||||||
|
|
Loading…
Reference in New Issue