Keeping words (names in particular) together

New Here ,
May 24, 2021 May 24, 2021

Copy link to clipboard

Copied

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!!!

TOPICS
How to, Print

Views

70

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct Answer

Adobe Community Professional , May 24, 2021 May 24, 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.

Likes

Translate

Translate
Adobe Community Professional ,
May 24, 2021 May 24, 2021

Copy link to clipboard

Copied

Setup a character style and call it No Break.

 

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

Untitled-1.jpg

 

Create a paragraph style for list names

The GREP  expression for any text between 2 commas

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

 

Capture.PNG

 

 

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 24, 2021 May 24, 2021

Copy link to clipboard

Copied

LATEST

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!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines