Prior to 2.2.1 (I believe) non-breaking-spaces were treated the same as other spaces. In particular, they would be eaten up by the 'word' chunk *and* allow line wraps in fields.
The latter was reported as a bug and so 'fixed'. In so doing it seems to have broken the functionality of the 'word' chunk in this specific circumstance - something which I don't believe has been mentioned up until now. Anyway, if people are generally of the feeling that the word chunk should also eat non-breaking spaces then BZ it and it will do so again... Warmest Regards, Mark. On Sat, 2005-08-13 at 18:57 -0500, Ken Ray wrote: > On 8/13/05 3:22 PM, "Sivakatirswami" <[EMAIL PROTECTED]> wrote: > > > What is the ASCII for a hard space and while the space might be > > retained, I do believe even with a a hard space, the empty line(s) > > deletion at beginning and end of the entire text chunk would still be > > achieved (the original goal) > > > > right? > > The ASCII value for a hard space is 202, and unfortunately the answer > depends on what you've got in your container. If you have: > > (CR) > (spc)(CR) > Test1(CR) > Test2(CR) > (CR) > (spc)(CR) > > when you do word 1 to -1 you get: > > Test1(CR) > Test2 > > However, if the container is: > > (CR) > (hardspc)(CR) > Test1(CR) > Test2(CR) > (CR) > (hardspc)(CR) > > when you do word 1 to -1 you get: > > (hardspc)CR > Test1(CR) > Test2(CR) > (hardspc) > > This is why I use the regex expression for my "stsTrim" function instead of > "word 1 to -1"... it's not as elegant, but it *does* handle all the > situations. > > function stsTrim pWhat > local tRetVal > get matchText(pWhat, "(?s)^\s*(.*?)\s*$", tRetVal) > return tRetVal > end stsTrim > > But if you know for sure that you won't be dealing with hard spaces, "word 1 > to -1" is really elegant and easier to use I'd think. > > > Ken Ray > Sons of Thunder Software > Web site: http://www.sonsothunder.com/ > Email: [EMAIL PROTECTED] > > > _______________________________________________ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution _______________________________________________ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution