2008/12/9 John & Mary Linge <[EMAIL PROTECTED]> > I've tried this on OOO 3.0 on both Windows and Mac, so it should work > generally. > > Select Find and Replace > Select More Options > Select Regular Expressions > Enter $ in the Search For field > Click Find > > You will see the end of paragraph selected. You can replace it with any > character or character combination except for non-printing characters. If > you end the combination with \n, the end of paragraph character is > retained. > Otherwise, it is removed and the paragraph is merged with the next > paragraph. I did not check to see which paragraph formats are retained. > > The help tells you that, to find and replace empty paragraphs, enter ^$ in > the Find field. If you replace it with nothing, the empty paragraph is > deleted. > > By the way, examining the format of the document as saved on disk tells you > nothing about how it is represented in memory. > > John > > All of the above is true but you still can't treat "paragraph marks" as characters, however they are represented in memory. If you could, you'd be able to find patterns that span paragraph boundaries and you can't. If a paragraph mark were treated as a normal character then the RE pattern "A.*Z" would "find", as a single instance, an entire 50MB [section of a] document whose first character is A and whose last is Z. It's just not practical and, in most cases, not what people expect or want.
-- Harold Fuchs London, England Please reply *only* to [email protected]
