remove extra spaces (Blade Template)

This commit is contained in:
Darron Park 2018-03-19 15:08:26 +09:00
parent 895d0178cb
commit ef4098af01
2 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@
</head>
<body>
@section('sidebar') This is the {{ $mater }} sidebar.
@section('sidebar') This is the {{ $mater }} sidebar.
@show
<div class="container">
@ -13,17 +13,17 @@
</div>
@component('alert')
@slot('title') Forbidden
@slot('title') Forbidden
@endslot
<strong>Whoops!</strong> Something went wrong!
@endcomponent
@foreach ($users as $user)
@if ($user->type == 1)
@foreach ($users as $user)
@if ($user->type == 1)
@continue
@endif
<li>{{ $user->name }}</li>
@if ($user->number == 5)
@if ($user->number == 5)
@break
@endif
@endforeach

View File

@ -55,7 +55,7 @@ module.exports = class JSBeautify extends Beautifier
when "Blade"
beautifyHTML = require("js-beautify").html
# 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)
# post script (Workaround)
text = text.replace(/<blade ([^\n]*)\/>/ig, "@$1")