Copy link to clipboard
Copied
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?
1 Correct answer
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
I think I managed to find the solution, replaced ^p^p with ^p
Thank you!!
Copy link to clipboard
Copied
Great!

