-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Indenting doesn't work for custom functions #303
Comments
This is reproduced here for me as well. But I don't think it's a bug. |
I have a similar issue, I use {t}text{/t} to mark translatable strings, but the formatter breaks things up :
becomes
It is a big problem because now the translation string has a \n at the end, and it cannot be found anymore. |
@aswinkumar863 could you please add the possibility to configure custom reservated words for identation? |
Describe the bug
When using the format document function, it doesn't keep the indenting of my custom functions. Indents of Smarty default functions such as {if} {foreach} or {for} are nicely formatted. But I have many custom functions like {tabset} or {tab} and their indent keeps being removed by Format document.
Screenshots
![image](https://user-images.githubusercontent.com/1956522/137321421-13d8f538-5e6a-4045-ad6b-ccdad602f0bf.png)
Before formatting
After formatting
![image](https://user-images.githubusercontent.com/1956522/137321520-c8c7ebcd-781b-4075-963e-35d5ba158cc7.png)
Context (please complete the following information):
The text was updated successfully, but these errors were encountered: