- Joined
- Dec 27, 2012
- Messages
- 14
- Reaction score
- 1
Does anyone know the "find and replace" code for removing extra spaces at the end of a paragraph?
Last edited by a moderator:
Couldn't you just search for a space and a paragraph mark (^p) and replace with only a paragraph mark?
Does anyone know the "find and replace" code for removing extra spaces at the end of a paragraph?
Spaces and/or tabs after paragraph returns make that more complicated. Not to mention what might lurk in paragraph styles. I always have to turn on display of all formatting marks in order to figure out what is in the file and how to fix it.Okay so you actually need the code for hard returns, replacing any instance of two in a row (¶¶) with just one (¶).
Okay so you actually need the code for hard returns, replacing any instance of two in a row (¶¶) with just one (¶).
Spaces and/or tabs after paragraph returns make that more complicated. Not to mention what might lurk in paragraph styles. I always have to turn on display of all formatting marks in order to figure out what is in the file and how to fix it.
(Line breaks, ^l, also complicate many amateurs' files I've had to fix.)
--Ken
The code, at least for me, is the widget I showed in parath.
Only if there is just one consistent issue. Where there are multiple issues (and I encounter that in files I get for formatting or editing) it is more complicated.. . .It was as simple as putting the code in the "find" field and a different code in "replace." . . . .
Okay, I finally figured it out. In the F box, I needed to put two spaces before the ^p, and in the R box no spaces before the ^p. I then had to run it again with only one space before the ^p in the F box.
You might want to test this on a copy of your file first.
Were you putting in a space in the Replace box when you tried the earlier suggestions?