I've used this but I've found a problem with it eating up some server time
on complex outputs. But it does clean up the write space .

<cfscript>
        tab = chr(9);
        cr = chr(13);
        lf = chr(10);

        // General clean-up

        temp = rereplacenocase(fusebox.layout, lf, cr, "all");
        temp = rereplacenocase(temp, tab, " ", "all");

        // Remove blank lines

        PageLen = ListLen(temp,cr);
        dellist = "";

        for (i=1; i LTE PageLen; i=i+1) {
                line = trim(ListGetAt(temp,i,cr));
                if (len(line) lt 1) {
                        dellist = ListAppend(dellist, i);
                }
        }
        dellist = ListSort(dellist, "Numeric", "Desc");
        dellen = ListLen(dellist);

        for (i=1; i LTE dellen; i=i+1) {
                delline = ListGetAt(dellist,i);
                temp = ListDeleteAt(temp,delline,cr);
        }
        fusebox.layout = temp;
</cfscript>


Lee Foster
(e)consultant, Web developer, Web Architect
[EMAIL PROTECTED]
615-834-1876
http://www.l3enterprises.com
Nashville, TN
-----Original Message-----
From: Kelly Tetterton [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 10:46 AM
To: [EMAIL PROTECTED]
Subject: RE: fb3 & whitespace

I finally resolved this. I have several act_ files that do a lot of file
read/writes and deserialization of wddx packets. On those files, I also
needed to add the <cfsilent> tag in order to fully suppress the whitespace
being generated --

-----Original Message-----
From: Nathan Smith [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 9:42 AM
To: '[EMAIL PROTECTED]'
Subject: RE: fb3 & whitespace


Any chance it is from a database field?  Do you have text or long char data
types that need trim()?

-----Original Message-----
From: Kelly Tetterton [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 8:45 AM
To: [EMAIL PROTECTED]
Subject: RE: fb3 & whitespace


I'm wrapping *everything*, and still we're getting whitespace.....

-----Original Message-----
From: John Quarto-vonTivadar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 12:03 AM
To: [EMAIL PROTECTED]
Subject: Re: fb3 & whitespace


it's not coming from the core files, that is already wrapped in a "enable
cfoutput only".   what about your layout files? are you wrapping that in one
at all?

----- Original Message -----
From: "Kelly Tetterton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 03, 2002 11:14 PM
Subject: fb3 & whitespace


Folks --

I'm wondering if anyone else is having whitespace issues with fb3; we have
some files that are generating enormous amounts of whitespace, and I'd
really like to reduce it. For us, it seems to be appearing between the
content file and the layout file. Any ideas?

Kelly Tetterton
Technical Lead, Macromedia Certified ColdFusion Developer
duoDesign: Internet Design, Technology & Marketing

847-491-3000 main | [EMAIL PROTECTED]
847-491-3100 fax | www.duoDesign.com
847-491-7125 direct

==^================================================================
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]

T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================


Reply via email to