Well, I was reluctant to do that because tabs are used for indentation. I
started out using string.whitespace then changed to a smaller subset.
Theoretically, it shouldn't be a problem to gobble tabs because we're in the
html zone, ie not in a script, so indentation doesn't matter.  However, I
was trying to gobble as little as possible, and have as little impact on
html as possible.

I dunno, is it safe to assume that anything between two script/end tags is
garbage that isn't needed?  I guess I was thinking that there would only be
spaces and returns, but you're pointing out that you use tabs to indent your
html?  So you would like to be able to indent the if/else block as well?  In
that case, we would need to gobble the tabs.

I guess I'm trying to find a balance between removing confusion for psp
authors when there code doesn't work as expected.  They'll be confused if
their if/else blocks don't work because they've got a space or return
between the end of the if and the start of the else.  But then again, they
might be confused if they've got spaces or tabs or whatever between two
script blocks that disappear in the final output.

I'm not an html expert, so I am looking for guidance from the group. 

Jay

> -----Original Message-----
> From: Geoffrey Talvola [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 18, 2002 9:03 AM
> To: 'Love, Jay'; Webware Discuss; 
> '[EMAIL PROTECTED]'
> Subject: RE: [Webware-devel] RE: [Webware-discuss] PSP and if/else
> 
> 
> Love, Jay wrote:
> > This change has been put into CVS.  Please test it.
> > 
> > The rule is if there is a block of charatcer data that 
> > contains only spaces,
> > carriage returns and linefeeds, and that character data is 
> > between a pair of
> > script or end psp tokens, the character data is removed.  If it is
> > sandwiched on one side by an expression (<%= %>), it is NOT removed.
> > 
> > I think this should do it.  
> > 
> > The Docs have NOT been updated yet.
> > 
> > Jay
> 
> I think you should gobble up all whitespace, including tabs 
> (which I use in
> my own PSP's).  You could use "char in string.whitespace" to 
> test if a given
> char is whitespace.
> 
> - Geoff
> 
> _______________________________________________
> Webware-discuss mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
> 


----------------------------------------------------------------------------

This e-mail and any attachments may be confidential or legally privileged.
If you received this message in error or are not the intended recipient, you
should destroy the e-mail message and any attachments or copies, and you are
prohibited from retaining, distributing, disclosing or using any information
contained herein.  Please inform us of the erroneous delivery by return
e-mail. 

Thank you for your cooperation.

----------------------------------------------------------------------------



_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to