Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Linebreak after {/if} tag

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
ilyalyu
Smarty Regular


Joined: 03 Nov 2009
Posts: 72

PostPosted: Thu Oct 17, 2013 2:06 pm    Post subject: Linebreak after {/if} tag Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP