Skip to main content
Participant
November 13, 2017
Answered

Deleting line breaks in only one part of the text

  • November 13, 2017
  • 1 reply
  • 6862 views

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?

    This topic has been closed for replies.
    Correct answer Barb Binder

    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.

    1 reply

    Barb Binder
    Community Expert
    Barb BinderCommunity ExpertCorrect answer
    Community Expert
    November 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.

    ~Barb at Rocky Mountain Training
    trimatijeAuthor
    Participant
    November 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?

    trimatijeAuthor
    Participant
    November 13, 2017

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

    Thank you!!