Copy link to clipboard
Copied
Copy link to clipboard
Copied
Hi @singlewahm, this article might help, specifically the section on runts. The idea is to use a grep style in your body paragraph style that identifies *any* runts by accessing the last two words of a paragraph and applying the no-break attribute via a character style. This might be good in your situation. Their trick of adding a space at end of paragraph to override the grep style seems clever.
Otherwise you could use a grep that targets the State two-letter code and zip code specifically, eg "CA 94043":
([A-Z]{2})\s+(\d{5}(-\d{4})?)\.?$
- Mark
Copy link to clipboard
Copied
Are "," ALWAYS there?
Is it a long list or single instances?
If a single long list - you could play with a table.
Or GREP that will skip first "," and apply CharStyle with NoBreak to the rest would do the job.