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

Deleting line breaks in only one part of the text

Community Beginner ,
Nov 13, 2017 Nov 13, 2017

Hi guys,

I have problem that all paragraphs in the main book text have line breaks, but also there are quotations and titles inside text that have line breaks I need to keep.

All parts of the text have different style, is there a way to delete line breaks in only one part of the text that has it's one paragraph style, or any similar solution?

6.3K
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

Community Expert , Nov 13, 2017 Nov 13, 2017

Hi trimatije, you are referring to where someone pressed Shift+Enter to start a new line in the middle of a paragraph?

If so, yes. You can run a Text Find/Change to search for line breaks (^n) and replace with a space ( ), and you can limit it to a specific paragraph tag. If this appears on multiple tags, you can run it for each tag where you need the line breaks removed.Screenshot 2017-11-13 07.21.19.png

Translate
Community Expert ,
Nov 13, 2017 Nov 13, 2017

Hi trimatije, you are referring to where someone pressed Shift+Enter to start a new line in the middle of a paragraph?

If so, yes. You can run a Text Find/Change to search for line breaks (^n) and replace with a space ( ), and you can limit it to a specific paragraph tag. If this appears on multiple tags, you can run it for each tag where you need the line breaks removed.Screenshot 2017-11-13 07.21.19.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
Community Beginner ,
Nov 13, 2017 Nov 13, 2017

Thank you BarbBinder, it works as a charm and I marked it as correct.


The other problem i have is that they are all end of paragraph (^p) and there is one at the end of the text and one in the middle of two paragraphs.

Like

text text text

text text text(^p)

(^p)

text text text

text text text(^p)

is there a way to differentiate between the two, or a way to make end of the paragraph shorter or I'll have to do 400 pages manually?

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
Community Beginner ,
Nov 13, 2017 Nov 13, 2017

I think I managed to find the solution, replaced ^p^p with ^p

Thank you!!

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
Community Expert ,
Nov 13, 2017 Nov 13, 2017
LATEST

Great!

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