Reply To: Pasting copy from a PDF into Idd

Home Page / Forums / General InDesign Topics (CLOSED) / Pasting copy from a PDF into Idd / Reply To: Pasting copy from a PDF into Idd

#50995

@Jesserenko Yes, GREP would certainly do what I want, especially if I can figure out how to keep double returns from being replaced so I won't lose the true paragraph return. 

Try this: (?<=[^\r]) *\r(?=[^\r]) — replace with a single space.

In its essence, it should search for at-left-not a return, any number of regular spaces (including none at all), a single return, at-right-not a return.

Since copy-and-paste often introduces some space before carriage returns, you need to allow for zero or more spaces before that return.

This article was last modified on November 27, 2009

Comments (0)

Loading comments...