Sunday 07 September 2003 2:34:32 pm
I suggest making a template operator that removes all whitespace outside of html-tags within the template operator. Example:
{no-whitespace}
<img src="test1.gif">
<img src="test2.gif">
<img src="test3.gif"> {/no-whitespace} This would remove all whitespace between the image tags and place them on one line in the generated code: <img src="test1.gif"><img src="test2.gif"><img src="test3.gif"> HTML elements such as images, form buttons, list items and CSS inline elements are all affected by linebreaks in the code and often needs to be put on a single line to preserve the intended design of the web-site. This template operator would allow us to keep the template code nicely formatted in such cases.
Daniel Staver
http://daniel.staver.no
|