Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Find hard return, replace with soft return

Participant ,
Nov 08, 2018 Nov 08, 2018

In the attached image there are 2 paragraph styles: TRIP NAME (line 1) and DETAILS (lines 2 and 3).

I am trying to find the first hard return in every paragraph using the DETAILS paragraph style and replace it with a hard return. In this case, it would be the hard return after "Avid".

Any idea how I could do this with GREP? Screen Shot 2018-11-08 at 4.29.58 PM.png

6.0K
Translate
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

Guide , Nov 09, 2018 Nov 09, 2018

try this grep

find:

.+\K\r(?=.+)

format:

DETAILS

replace with:

\n

Translate
Guide ,
Nov 09, 2018 Nov 09, 2018

try this grep

find:

.+\K\r(?=.+)

format:

DETAILS

replace with:

\n

Translate
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
Guide ,
Nov 09, 2018 Nov 09, 2018

\r(?=.)  will be enough! …

Translate
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
Guide ,
Nov 09, 2018 Nov 09, 2018

I thought so too

then I thought if there are  empty lines with "DETAILS" paragraph style (wrongly applied)  that he doesn't want to eliminate

Translate
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
Enthusiast ,
Nov 09, 2018 Nov 09, 2018
LATEST

You might also explore the new features in CC2019 where you can change the spacing between paragraphs using the same style. This is how I control a large space after a list of bullets.

Screen Shot 2018-11-09 at 12.44.41 PM.png

Translate
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