Comments (5)
Issue-Label Bot is automatically applying the label bug
to this issue, with a confidence of 0.68. Please mark this comment with 👍 or 👎 to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
from vscode-blade-formatter.
@RyanNutt
Could you provide example template that occurs the problem?
I would like to try reproducing.
from vscode-blade-formatter.
Sure...
I didn't catch it before, but both files that I tried this on had a PHP code block on the top. One, like this, with comments. The other had a bit of code that sets up variables. If I take out the PHP it appears to format correctly.
Before
<?php
/* Some comments on this template
*/
?>
<div class="font-ext-links">
<a class="btn btn-cta" href="{{ url('download/' . $font->slug) }}" title="Download {{ $font->title }}">
<i class="fa fa-fw fa-download"></i>
Download
</a>
</div>
After
{{ url('download/' . $font->slug) }}" title="Download {{ $font->title }}">
<i class="fa fa-fw fa-download"></i>
Download
</a>
</div>
from vscode-blade-formatter.
@RyanNutt
Thanks for sharing!
Also reproduced in my environment.
I'll try figure out what causes this behaviour.
Current workaround is to comment by blade syntax or remove php code block section will generate constant results.
{{-- Some comments on this template --}}
<div class="font-ext-links">
<a class="btn btn-cta" href="{{ url('download/' . $font->slug) }}" title="Download {{ $font->title }}">
<i class="fa fa-fw fa-download"></i>
Download
</a>
</div>
or
<div class="font-ext-links">
<a class="btn btn-cta" href="{{ url('download/' . $font->slug) }}" title="Download {{ $font->title }}">
<i class="fa fa-fw fa-download"></i>
Download
</a>
</div>
from vscode-blade-formatter.
Just published 0.3.1 with this bug fix.
from vscode-blade-formatter.
Related Issues (20)
- [Feature]: disable single quotation HOT 5
- [Feature]: Support for formatting modified lines only HOT 2
- Can't use ES Module format TailwindCSS config file HOT 3
- [Formatting Bug]: Array to object into optional chaining HOT 5
- [Formatting Bug]: HOT 1
- [Feature]: multi-line comments cleanup HOT 4
- ⚠️ [Bug]: v0.22.0 does not start properly HOT 1
- [Bug]: Endless loop on format HOT 2
- [Bug]: Error on update to version v.0.23.0 HOT 2
- [Formatting Bug]: Scoped slots opening tag improperly colored. HOT 2
- [Formatting Blade]: Corrupt envoy script - format on save HOT 2
- [Bug]: instalo la extension y me deshabilita colores de el tema que uso HOT 2
- [Feature]: Laravel volt HOT 2
- [Feature]: TODO comments highlight HOT 2
- [Formatting Bug]: HOT 2
- [Feature]: ERROR AL DAR RECONOCER CODIGO PARA DAR FORMATO HOT 1
- [Formatting Bug]: Parse Error on adding html escape tags HOT 1
- [Formatting Bug]: syntax error with double curly braces HOT 2
- [Formatting Bug]: @elsecan blade directive is ignored HOT 1
- [Formatting Bug]: not adjusting my text in text format HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-blade-formatter.