Saturday, 17 August 2013

cffile creating blank lines when storing a table

cffile creating blank lines when storing a table

I've got a cfsavecontent tag that saves a table. Later I use cffile to
write the saved content to a file. When I look at that file, I see that
there many blank lines inserted after <td> tags in the table; and few
blank lines inserted after </tr> tags. (Although it doesn't do that where
the code says <tr><td>&nbsp;</td></tr> all on one line.)
Presently I have a file which contains two of those tables. The tables are
generated in a loop, and the output file is created with cffile append.
This file has 915 lines in it of which maybe 30 are non-blank. All my
subsequent code works correctly, but this is just test data. In the real
world I could have 1000 or more tables, and I am concerned about the file
size.
The append itself is not inserting any extra lines.
Does anyone know what is causing these extra blank lines in the file; and
how to get rid of them?

No comments:

Post a Comment