plook
IS-IT--Management
- Apr 1, 2000
- 33
Hi !!
I got a problem with blank lines. What I mean is that I get a few blank lines on a page but there are no <BR> tags. Well, there are some, but only 2 or 3 maximum but I get 10 or 15 blank lines. Here is a copy of what my code looks like..
---------------------
... a few CFQUERY Tags are here...
<html>
<head>
<title>Title</title>
</head>
<BODY>
<CFSET DEFAULT_CURRENCY = "USD">
<CFSET DEFAULT_LANGUAGE = "1">
<CFSET DEFAULT_MARKUP = "100">
<CFOUTPUT>
<CFSET shipping_charge = #find_customer.shipping_charge2#>
</cfoutput>
<CFOUTPUT><B><font size=+1 color="000000">Price List for #dateFormat(Now())#,#TimeFormat(Now())#</font></b></CFOUTPUT><BR>
<font face="arial" size="2" color="#000000">
<CFOUTPUT query="find_salesperson">
BLA BLA BLA<br>
BLA2 BLA2 BLA2<bR>
<form action="form" method="post"><input type="hidden" name="_mode" value="sendmail"><input type="hidden" name="_subject" value="Subject"><input type="hidden" name="_email" value="#find_salesperson.email#"><input type="hidden" name="_back" value="value">
</cfoutput>
<table border="0"><col width="180"><col width="200"><col width="90"> <col width="90">
<CFIF URL.cat4 IS NOT "no"><tr><td><B>PC133 168pin</b></td><td></td><td></td><td><TD></td>
</tr>
----------------------------------------
Which CF code generates the following HTML code...
---------------------------------------
<html> <head> <title>Title</title> </head> <BODY> <B><font size=+1 color="000000">Price List for 02-Feb-01,10:16 AM</font></b><BR> <font face="arial" size="2" color="#000000">
BLA BLA BLA<bR>
BLA2 BLA2 BLA2 <bR>
<form action="form" method="post"><input type="hidden" name="_mode" value="sendmail"><input type="hidden" name="_subject" value="subject"><input type="hidden" name="_email" value="email"><input type="hidden" name="_back" value="value"> <table border="0"><col width="180"><col width="200"><col width="90"> <col width="90"> <tr><td><B>PC133 168pin</b></td><td></td><td></td><td><TD></td> </tr>
------------------------------
There is nothing really funky in this code.. but the browser (either IE 5.x or Netscape) puts about 15 Lines between "BLA2 BLA2 BLA2" and the first row of the table.
Any ideas where these lines could come from ?? And it seems like the more CFQUERY tags I put before the <HTML> tag, the more blank lines I get !!!!
Thanks for your help (and for your patience to read my post up to here
))
Dominic
I got a problem with blank lines. What I mean is that I get a few blank lines on a page but there are no <BR> tags. Well, there are some, but only 2 or 3 maximum but I get 10 or 15 blank lines. Here is a copy of what my code looks like..
---------------------
... a few CFQUERY Tags are here...
<html>
<head>
<title>Title</title>
</head>
<BODY>
<CFSET DEFAULT_CURRENCY = "USD">
<CFSET DEFAULT_LANGUAGE = "1">
<CFSET DEFAULT_MARKUP = "100">
<CFOUTPUT>
<CFSET shipping_charge = #find_customer.shipping_charge2#>
</cfoutput>
<CFOUTPUT><B><font size=+1 color="000000">Price List for #dateFormat(Now())#,#TimeFormat(Now())#</font></b></CFOUTPUT><BR>
<font face="arial" size="2" color="#000000">
<CFOUTPUT query="find_salesperson">
BLA BLA BLA<br>
BLA2 BLA2 BLA2<bR>
<form action="form" method="post"><input type="hidden" name="_mode" value="sendmail"><input type="hidden" name="_subject" value="Subject"><input type="hidden" name="_email" value="#find_salesperson.email#"><input type="hidden" name="_back" value="value">
</cfoutput>
<table border="0"><col width="180"><col width="200"><col width="90"> <col width="90">
<CFIF URL.cat4 IS NOT "no"><tr><td><B>PC133 168pin</b></td><td></td><td></td><td><TD></td>
</tr>
----------------------------------------
Which CF code generates the following HTML code...
---------------------------------------
<html> <head> <title>Title</title> </head> <BODY> <B><font size=+1 color="000000">Price List for 02-Feb-01,10:16 AM</font></b><BR> <font face="arial" size="2" color="#000000">
BLA BLA BLA<bR>
BLA2 BLA2 BLA2 <bR>
<form action="form" method="post"><input type="hidden" name="_mode" value="sendmail"><input type="hidden" name="_subject" value="subject"><input type="hidden" name="_email" value="email"><input type="hidden" name="_back" value="value"> <table border="0"><col width="180"><col width="200"><col width="90"> <col width="90"> <tr><td><B>PC133 168pin</b></td><td></td><td></td><td><TD></td> </tr>
------------------------------
There is nothing really funky in this code.. but the browser (either IE 5.x or Netscape) puts about 15 Lines between "BLA2 BLA2 BLA2" and the first row of the table.
Any ideas where these lines could come from ?? And it seems like the more CFQUERY tags I put before the <HTML> tag, the more blank lines I get !!!!
Thanks for your help (and for your patience to read my post up to here
Dominic