Using Compress to Eliminate Whitespace

The code in the function example has a slight problem: most browsers will automatically underline any whitespace between the <a> and </a> tags. You can get rid of this whitespace using the compress tag:

<a href="${url}"><compress>

    <if preferences.showImages>
        <img src="${image}" border="0" alt="${alt}">
    <else>
        ${alt}
    </if>

    </compress></a>
	

This removes all whitespace not occuring inside tags.