|
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 |
patrick-proulx Smarty n00b
Joined: 07 Aug 2014 Posts: 2
|
Posted: Thu Aug 07, 2014 4:05 pm Post subject: Line breaks and paragraph tags |
|
|
Hi, I'm new to smarty and this forum, but my new employer's platform is dependent on it and I'm trying to get up to speed as quickly as possible. I've been looking for an answer to this question but have been unsuccessful and it's been blocking me for weeks (I've just been delaying it in the meantime and focusing on other thigns).
Is there a way to avoid line breaks and paragraph tags being added to html in smarty templates?
For example, if I have this in my smarty template (this is a small snippet from a bigger file):
<div class="col-lg-12">
<div class="input-group">
<input type="text" class="form-control">
<span class="input-group-btn">
<button class="btn btn-default" type="button">Go!</button>
</span>
</div><!-- /input-group -->
</div><!-- /.col-lg-12 -->
It generates this as HTML:
<div class="col-lg-12">
<div class="input-group">
<p> <input type="text" class="form-control">
<br> <span class="input-group-btn">
<br> <button class="btn btn-default" type="button">Go!</button>
<br> </span>
</p></div><!-- /input-group -->
<p></p>
</div>
Any way to get it to not add all those tags (other than just sticking them all together, which just makes it unreadable)?
Thanks in advance!! |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Thu Aug 07, 2014 4:10 pm Post subject: |
|
|
Smarty DOES NOT do anything you did not tell it to do.
Trace all template inclusion chains, check filters. Something doing it to the template. And it is right next to your fingers, you just need to snap at the right moment. |
|
Back to top |
|
patrick-proulx Smarty n00b
Joined: 07 Aug 2014 Posts: 2
|
Posted: Thu Aug 07, 2014 5:33 pm Post subject: |
|
|
AnrDaemon wrote: | Smarty DOES NOT do anything you did not tell it to do.
Trace all template inclusion chains, check filters. Something doing it to the template. And it is right next to your fingers, you just need to snap at the right moment. |
Thank you for the response. I'll have to escalate this at work to see if there's someone who can go back into our platform to see where this was implemented.
Thanks again!
Pat |
|
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
|