🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1190

Re: [JS CS4] Why is this If Else test not working?

#1190
From: Harbs
Date: Thu, 19 Feb 2009 12:08
7 lines
823 bytes
I would strip out trailing white space like this:

myReport = myReport.replace(/\s+$/, '');

-- 
Harbs
http://www.in-tools.com
Technical Details
Message-ID: <BF2E29E9D4FF459600884F4284C184DA@in.webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
References: <59b7f983.-1@webcrossing.la2eafNXanI> <59b7f983.5@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,d713958badc61099
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Harbs
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: [JS CS4] Why is this If Else test not working?
Message-ID: <BF2E29E9D4FF459600884F4284C184DA@in.webcrossing.la2eafNXanI>
Date: Thu, 19 Feb 2009 04:08:04 -0800
References: <59b7f983.-1@webcrossing.la2eafNXanI> <59b7f983.5@webcrossing.la2eafNXanI>
Lines: 8
User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit