Hi everyone,
I've used the following code in an Indesign GREP style:
^w+ w+ FTIA|^w+ w+ ATIA|^w+ w+
This code applies a character style to the first three words in a paragraph based on the following 3 conditions:
1) It looks for the first two words plus some specific letters, FTIA
2) It looks for the first two words plus some specific letters, ATIA
3) It looks for the first two words only
If any of these conditions are fulfilled then the specific words and/or letters have the character style applied. This all works well but there is a slight glitch. If I apply a soft return to the paragraph, ie. in order to force a word to the next line, the GREP style gets applied again to the specific words on this next line. I always thought GREP styles were applied on a paragraph by paragraph basis so I'm not sure why this is happening with a soft return.
I wondered if any knows of a workaround to prevent this?
Really appreciate any assistance.