Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect HTML formatting since version 1.3 #22

Open
ondrowan opened this issue Jun 26, 2011 · 9 comments
Open

Incorrect HTML formatting since version 1.3 #22

ondrowan opened this issue Jun 26, 2011 · 9 comments

Comments

@ondrowan
Copy link

Since I installed version 1.3, I'm getting incorrect HTML formatting in *.html.twig files.

In following code, it's incorrectly formatting HTML tags, as if it thought Twig tags are HTML too.

<nav>
    {% if app.security.isGranted('IS_AUTHENTICATED_FULLY') %}
            <a href="#">Edit</a> <a href="{{ path('logout') }}">Logout</a>
    {% else %}
            <a href="{{ path('login') }}">Login</a> <a href="{{ path('register') }}">Register</a>
    {% endif %}
            <a href="">Some other links</a>
        </nav>
@sebhoerl
Copy link
Owner

Is this the whole file? I can't see any format errors.

@ondrowan
Copy link
Author

It isn't whole file, just a portion of it. <nav> and </nav> are differently indented and <a href=... is indented one more tab to the right side than it was supposed to. This happens only when I have twig code in between. When I remove it and format the file again, it works ok.

@sebhoerl
Copy link
Owner

Ah, okay, I thought you're talking about the colouring. The wrong HTML indenting is a known issue and I hope I'll find a solution during the next days.

@Raulken
Copy link

Raulken commented Nov 11, 2012

have u find a solution??

@micayael
Copy link

@blogsh Have you find a soluction for this issue?

@saravpreet
Copy link

Any update on this?

@myknbani
Copy link

myknbani commented Nov 3, 2013

any updates? this is a very old issue...

@jmauerhan
Copy link

Also still looking for a solution.

@GwtLabs
Copy link

GwtLabs commented Apr 2, 2014

Have u find a solution?? The Netbeans 8.0 is still the same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants