Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

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

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-09-2006, 08:12 AM
 
musiclc musiclc is offline
 

Member
  
Join Date: Aug 2006
Posts: 11
 

Red face 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!
__________________
Version 4.1.2
Reply With Quote
  #2  
Old 09-09-2006, 08:26 AM
 
neroag neroag is offline
 

Senior Member
  
Join Date: May 2005
Location: UK
Posts: 171
 

Default 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
__________________
X-cart Gold - 4.0.18 - 4.1.9 - 4.1.10 - 4.3.0
Reply With Quote
  #3  
Old 09-09-2006, 11:46 AM
 
tobychapman tobychapman is offline
 

Senior Member
  
Join Date: Sep 2005
Location: France
Posts: 112
 

Default 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.
__________________
XCart Gold 4.0.18
Fedora 6 - Apache 2.2.4 - PHP 5.1.6 - MySQL 5.0.27
www.goose.fr
Reply With Quote
  #4  
Old 09-09-2006, 12:09 PM
 
musiclc musiclc is offline
 

Member
  
Join Date: Aug 2006
Posts: 11
 

Default Re: Any issues with 'white space' in .tpl's or OK?

Great - Thanks for the help!
__________________
Version 4.1.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:00 PM.

   

 
X-Cart forums © 2001-2020