[opencms-dev] page ugliness

Isaac R. Higgins isaac.higgins at isaacray.com
Thu May 24 15:01:41 CEST 2007


I have the same pet peeve.

I usually do it like this:

<% /*this is jsp block #1*/ %><%
/*this is jsp block #2*/ %><%
/*this is jsp block n*/ %>


By removing the newline/whitespace between JSP blocks, it's not translated to the page as anything outside the jsp code tags will be parsed as plain HTML.

-----Original Message-----
From: opencms-dev-bounces at opencms.org on behalf of Christoph P. Kukulies
Sent: Thu 5/24/2007 8:58 AM
To: opencms-dev at opencms.org
Subject: [opencms-dev] page ugliness
 
I always wondered where all the blank lines come from in my generated
page output.

It seems that for every newline in a jsp section, be it <% %> embedded
code or <&tags %> that newline is transported into the output page.

This is ugly, I think, and I'm seeking for a way to avoid that. Removing
newlines in code section makes it hardly legible on the other hand.

I'm hoping there is a switch (in jsp) to suppress new lines as long as
they belong to jsp sections.

Comments?

--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de


_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev



-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 3124 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20070524/85f711c7/attachment.bin>


More information about the opencms-dev mailing list