5 Replies Latest reply on Mar 2, 2011 7:48 PM by Harbs.

    testStyleRanges doesn't include spaces?

    TᴀW Adobe Community Professional & MVP



      Why doesn't textStyleRanges include spaces?


      That is: Given a paragraph with some regular text, paragraph.textStyleRanges[0].select() will only take you up to the end of the first word.


      Even if the space following the first word is formatted identically in every way to the preceding word, textStyleRange[0] (in my example) will NOT include the space and any words after it.


      Is that right? Or am I missing something?


      If it is true, is there any logic there?


      In any case, is there any simple way of getting a textStyleRange that will include spaces?


      Many thanks,