|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
ilyalyu Smarty Regular
Joined: 03 Nov 2009 Posts: 72
|
Posted: Thu Oct 17, 2013 2:06 pm Post subject: Linebreak after {/if} tag |
|
|
Some time ago I reported that Smarty is eating linebreak after {/if} tag, but I was told that this is expected behavior.
So, I have added prefilter that adds additional linebreaks after each {/if} to compensate for the eaten linebreak.
However, it turned out that in the following code {"...{if ...}...{/if}..."} Smarty DOES NOT eat linebreak.
So, after applying my prefilter I compensate for eaten linebreaks in one place, but get unexpected linebreaks in another place.
Is this something that can be fixed? i.e. make Smarty eat linebreaks in a regular way or, ideally, add a variable to Smarty class that would control eating/not eating linebreaks? |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|