I have to deal with lists of names in the form 'Smith A, Jones B, Williams C'. The text is set in fairly narrow columns, and I want to try and avoid the text breaking between the surname and the inital. I set up a character style to apply No Break, and created a grep style in the paragraph style to apply this character style to text matching the following:
ul+ u+>
It almost works. The trouble is that sometimes the text refuses to break at the comma between two names where the surname is quite long. I end up with lines like
Guzman J,
Esmail R, Karjalainen K, Malmivaara A, Irvin E,
Bombardier C.
when I see no reason why I shouldn't be getting
Guzman J, Esmail R, Karjalainen K,
Malmivaara A, Irvin E, Bombardier C.
This seems more likely to happen where there are more long words immediately following, so I suspect it's something to do with the paragraph composer trying to fill the column width on most lines, even if that means leaving some drastically short. Any ideas on how I can fix this behaviour?