You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I write smarty code within a foreach loop within HTML pre tags, running the code formatter keeps inserting tabs/spaces when triggered.
To Reproduce
Take this code:
<pre>
{$array = ["a thing"]}{foreach$array as $item}{$item}{/foreach}
</pre>
Now trigger the Format Document command several time and you will see it will keep indenting the line with {$item}.
Expected behavior
I expect it to indent correctly once (if needed), and then stop.
Context (please complete the following information):
Version 1.9.0
The text was updated successfully, but these errors were encountered:
Namstel
changed the title
Continuous indentation foreach loop code in pre tags
Continuous indentation wrapped smarty code in pre tags or vice versa
Aug 3, 2021
Describe the bug
When I write smarty code within a foreach loop within HTML pre tags, running the code formatter keeps inserting tabs/spaces when triggered.
To Reproduce
Take this code:
Now trigger the Format Document command several time and you will see it will keep indenting the line with
{$item}
.Expected behavior
I expect it to indent correctly once (if needed), and then stop.
Context (please complete the following information):
The text was updated successfully, but these errors were encountered: