![]() |
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"> </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! |
Re: Any issues with 'white space' in .tpl's or OK?
Ive not come across any problems personally, but in saying that i use " " as spaces ;-)
|
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.
|
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.