My program has a bug -- the output has extra junk in it that doesn't belong there. Firebug shows me lines of code that would produce exactly this unwanted junk, but I don't have those lines in my program. I have spent hours on this and cannot solve it. Here is what Firebug says I have (the stuff in wavy brackets are my comments:
<tr>
<td class="repnum" style="width: 20px">1 </td> {td 1}
<td class="reprow" style="text-align: left; "> Maura</td> {td 2}
<td class="reprow" style="text-align: left; "> Cronin</td> {td 3}
<td class="repsort subhead"> </td> cannot find this anywhere
</tr>
<tr> cannot find this anywhere
<td class="repsort2 subhead "> </td> cannot find this anywhere
</tr> cannot find this anywhere
Part of my program below. The actual program has other ColdFusion stuff in it, but no additional HTML.
<tr>
... other stuff ...
<cfloop from = "#subpage1#" to = "#subhind_1#" index = "j">
<cfif sortnum[j] EQ 'y'>
<cfif subhdup[j][row] EQ "NO">
<cfset ctr[j] = 1>
<cfelseif subhdup[j][row] EQ "YES">
<cfset ctr[j] = ctr[j] + 1> <cfloop from = "#subpage1#" to = "#subhind_1#" index = "j">
<cfif sortnum[j] EQ 'y'>
<cfif subhdup[j][row] EQ "NO">
<cfset ctr[j] = 1>
<cfelseif subhdup[j][row] EQ "YES">
<cfset ctr[j] = ctr[j] + 1>
</cfif>
<td class = "repnum" style = "width: 20px">#ctr[j]# </td> td 1
</cfif>
</cfloop>
<cfloop from = "#subhind#" to = "#bbcollen#" index = "j">
<cfset col = bbcol[j]>
<cfset i = i + 1>
<cfif linefold GT 0>
<cfset imod = i%linefold>
<cfelse>
<cfset imod = 1>
</cfif>
<cfif linefold EQ 0 OR (linefold GT 0 AND i LE linefold)>
<cfset lineclass = "reprow">
<cfelse>
<cfset lineclass = "reprow2">
</cfif>
<cfif repdetail NEQ 'n'>
<cfoutput>
<cfset jcol = inpcol[j]>
<cfset temp = structaux["#jcol#InputType"]>
<cfif temp EQ "num" OR temp EQ "one">
<cfset anumform = NumberFormat(qrep[col][currentrow],.99)>
<td class = "#lineclass#" style = "text-align: right"> #anumform#</td>
<cfelseif temp EQ "date">
<cfset adate = DateFormat(qrep[col][currentrow],'mm/dd/yyyy')>
<cfif adate EQ "01/01/1001">
<cfset adate = "~">
</cfif>
<td class = "#lineclass#" style = "text-align: left"> #adate#</td>
<cfelse>
<td class = "#lineclass#" style = "text-align: left; "> #qrep[col][row]#</td>
</cfif><!---temp eq num --->
</cfloop> <!---subhind to bbcollen --->
... other stuff ...
</tr>
Does anyone have a suggestion?
as per request I had expanded the code presented
Someone said that this is about whitespace. It is not. If it were whitespace I'd be okay. But I've got all sorts of css dropping into those extra spaces, creating borders etc. It really produces an illegible mess.