Skip to main content
Participant
May 25, 2021
Answered

Keeping words (names in particular) together

  • May 25, 2021
  • 1 reply
  • 1929 views

Anyone know how to keep names together when listed by separated commas? My client doesn't want names broken over lines. There are 200 pages of listings so it's really time consuming to put soft returns or no breaks in manually.

Tried using Greps but didn't seem to work - or at least I was doing it wrong...

Please help!!!

This topic has been closed for replies.
Correct answer Eugene Tyson

Setup a character style and call it No Break.

 

Select the No Break and ensure it's ticked in the Character Style

 

Create a paragraph style for list names

The GREP  expression for any text between 2 commas

(?<=, ).+?(?=,)

 

 

 

Apply the List paragraph style to all your paragraphs of text with names.

1 reply

Eugene TysonCommunity ExpertCorrect answer
Community Expert
May 25, 2021

Setup a character style and call it No Break.

 

Select the No Break and ensure it's ticked in the Character Style

 

Create a paragraph style for list names

The GREP  expression for any text between 2 commas

(?<=, ).+?(?=,)

 

 

 

Apply the List paragraph style to all your paragraphs of text with names.

S5E3EAuthor
Participant
May 25, 2021

Thank you so much! I already had the character style set up so was on the right track, but just didn't know what the expression was.

You've saved me!