| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Any issues with 'white space' in .tpl's or OK? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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"> </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"> </TD></TR> _____{if $active_modules.Product_Options ne ""} __________{ include file="modules/Product_Options/customer_options.tpl"} _____{/if} <TR> Thanks!
__________________
Version 4.1.2 |
|||||||
#2
|
|||||||
|
|||||||
![]() Ive not come across any problems personally, but in saying that i use " " as spaces
![]()
__________________
X-cart Gold - 4.0.18 - 4.1.9 - 4.1.10 - 4.3.0 |
|||||||
#3
|
|||||||
|
|||||||
![]() 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 |
|||||||
#4
|
|||||||
|
|||||||
![]() Great - Thanks for the help!
__________________
Version 4.1.2 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|