----- Original Message -----
Sent: Monday, July 23, 2001 10:00
PM
Subject: RE: Orion's JSP generated
code
Umm, the \r\n is probably something you are including
inadvertently. I'm going to speculate that you have a construct that
looks like this...
<%
foo();
%>
<%
bar();
%>
between the first close and next open, you have a
\r\n. While it looks uglier on the JSP page it should clear your line
break if you did this...
<%
foo();
%><%
bar();
%>
Now why JSP doesn't clean this up for you an PHP does
probably boils down to a philosophical difference. PHP is cleaning it up
for you, where JSP is giving you exactly what you asked for. I'd guess
this is because PHP is pretty much pure web, where JSP is intended to be
portable into other formats that may think whitespace is
important.
Hi forum,
I have noticed that when I use scriplets
or tags in my JSPs , orion puts "\r\n" into the output stream code
for each tag. This results in many blank lines in the generated HTML code.
In comparison, PHP scriplets do not produce these blank
lines. Does anyone know how to "beautify" the generated code?
Thanks in advance,
Sergei.