X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Any issues with 'white space' in .tpl's or OK? (https://forum.x-cart.com/showthread.php?t=24782)

musiclc 09-09-2006 08:12 AM

Any issues with 'white space' in .tpl's or OK?
 
Hi,

I'd like to 're-flow' some of the .tpl scripts so they are more readable to me. Has anyone run across any issues with having white space between tags (using a good script/text editor)?

For instance, this is current display:

<TR><TD colspan="2">&nbsp;</TD></TR>
{if $active_modules.Product_Options ne ""}
{ include file="modules/Product_Options/customer_options.tpl"}
{/if}
<TR>

I'd like to have (the underscores would be spaces):

<TR><TD colspan="2">&nbsp;</TD></TR>

_____{if $active_modules.Product_Options ne ""}
__________{ include file="modules/Product_Options/customer_options.tpl"}
_____{/if}

<TR>

Thanks!

neroag 09-09-2006 08:26 AM

Re: Any issues with 'white space' in .tpl's or OK?
 
Ive not come across any problems personally, but in saying that i use "&nbsp;" as spaces ;-)

tobychapman 09-09-2006 11:46 AM

Re: Any issues with 'white space' in .tpl's or OK?
 
I've reformatted templates many times in 4.0.18 and never had a single issue -- line breaks, tabs and spaces never seem to break the flow of template compilation and the resulting html. Xcart and smarty cope well with this. The only issue I had were the tabs which display horribly in admin with ie.

musiclc 09-09-2006 12:09 PM

Re: Any issues with 'white space' in .tpl's or OK?
 
Great - Thanks for the help!


All times are GMT -8. The time now is 02:37 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.