Love, Jay wrote: > 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
I think it would be more confusing to only gobble up _some_ types of whitespace. Better to be consistent and gobble up _all_ whitespace. It might be worth it to provide a directive to turn on or off "whitespace gobbling". So if someone has a PSP where whitespace is significant, they could switch the behavior. - Geoff _______________________________________________ Webware-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-devel
