samuelcolvin / jinjahtml-vscode

Syntax highlighting for jinja(2) html templates in vscode
https://marketplace.visualstudio.com/items?itemName=samuelcolvin.jinjahtml
MIT License
135 stars 54 forks source link

shaping error In script-tag #123

Open tanabeJJ opened 1 year ago

tanabeJJ commented 1 year ago

When I edited a file "test.html.j2". I wrote a code like this . <script> {{ testscript }} </script> And better-jinja shaped that code like this. <script> { { testscript } } </script> This code is an error code in jinja.

samuelcolvin commented 1 year ago

Humm, I've tried that myself using vscode Version: 1.73.1 (Universal) and I don't see that error.

Which version of vscode and this extension are you using?

What exactly do you mean by "shaped"?

tanabeJJ commented 1 year ago

Sorry, I wanted to say "Fromat" not "shaped". My Vscode Version is 1.73.1(System setup). betterjinja_format

I have recorded that scene.

samuelcolvin commented 1 year ago

Weird, vscode format should definitely skip the Jinja tags.

This must be a bug in vscode.

tanabeJJ commented 1 year ago

OK,Thanks.