[opencms-dev] Trim whitespaces from template

Robert Weber closingtag at googlemail.com
Thu Apr 7 12:48:49 CEST 2011


Hi there,

I would like to know if there is a possibility to remove the blank lines
left behind by JSP directives within a template.

I use Tomcat 5.5 and JSP 2.0 and therefore can not use

<%@ page trimDirectiveWhitespaces="true" %>

within my template.

I tried to use the init-parameter within my tomcat web.xml

<init-param>
<param-name>trimSpaces</param-name>
<param-value>true</param-value>
</init-param>

But I does not work because the file extension of my generated file is
*.html I guess.

Any help is really appreciated!

Cheers!
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20110407/9627a88a/attachment.htm>


More information about the opencms-dev mailing list