How can I remove all returns at the end of text.

How can I remove all returns at the end of text. I have a big long text that I copied/pasted to Pages and every lines are broken by a "Return/enter".

That would take me forever to delete them one by one.

I tried the Find and replace, but can't put a "return" in the search bar. I tried to copy paste the "return" after applying the; show invisible, but it doesn't work neither. It thinks that it is a space.


MacBook Pro 13″, macOS 10.15

Posted on Jul 1, 2020 2:01 PM

Reply
Question marked as Top-ranking reply

Posted on Jul 1, 2020 3:28 PM

The problem with Find/Replace in Pages is that even though you may select only the text that you want to alter, it will detect all of the paragraph marks that it finds in the entire document. So in your example, you will have to be exercise restraint.


Select just the content that you want to restrict your find/replace too. From the Edit menu : Find… open the Find tool. On its gear selector, choose Find & Replace. In the Find field, type \n and leave the Replace field empty. it will then light up all paragraph marks (newlines) in the document. Do not click Replace All. Instead, click the Replace button once, then the > button, and repeat this sequence until you have removed just the paragraph marks that you intend. Then click the red close button it the Find & Replace panel to dismiss it.

Similar questions

3 replies
Question marked as Top-ranking reply

Jul 1, 2020 3:28 PM in response to austglu22

The problem with Find/Replace in Pages is that even though you may select only the text that you want to alter, it will detect all of the paragraph marks that it finds in the entire document. So in your example, you will have to be exercise restraint.


Select just the content that you want to restrict your find/replace too. From the Edit menu : Find… open the Find tool. On its gear selector, choose Find & Replace. In the Find field, type \n and leave the Replace field empty. it will then light up all paragraph marks (newlines) in the document. Do not click Replace All. Instead, click the Replace button once, then the > button, and repeat this sequence until you have removed just the paragraph marks that you intend. Then click the red close button it the Find & Replace panel to dismiss it.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How can I remove all returns at the end of text.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.