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
Variable in inline (in template file) JavaScript doesn't work when format selection.
To Reproduce
Code befor formatting:
<script>varstatus={$status};</script>
Code after formating - there is a space between $var and {}:
<script>varstatus={ $status };</script>
Expected behavior
Not to have space between {} and $var
The result after Smarty compile is not printet $status variable but something like this, because of spaces:
<script>varstatus={ $status };</script>
The final result after formating to work Smarty properly is:
<script>varstatus={$status};</script>
Context :
Version 2.1.0
The text was updated successfully, but these errors were encountered:
Describe the bug
Variable in inline (in template file) JavaScript doesn't work when format selection.
To Reproduce
Code befor formatting:
Code after formating - there is a space between $var and {}:
Expected behavior
Not to have space between {} and $var
The result after Smarty compile is not printet $status variable but something like this, because of spaces:
The final result after formating to work Smarty properly is:
Context :
The text was updated successfully, but these errors were encountered: