🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #20791

Re: What do you use to remove Paragraph Returns from your Text?

#20791
From: Paul Molenaar
Date: Tue, 27 Oct 1987 11:32
40 lines
1926 bytes
In article <2089@sputnik.COM> moriarty@tc.fluke.COM (Jeff Meyer) writes:
>As a frequent downloader of Unix articles to my Macintosh, I have a great
>need to have a utility that removes the Return characters from the ends of
>every line in a paragraph.
>
>                                        Moriarty, aka Jeff Meyer

I use MS-Word 3.01 to perform this function. It really is quite simple,
it only requires three 'search&replace' sequences (oh yes, a specific
utility would be better... but then again.. ;)

What you want is to remove all the returns at the end of the lines.
But removing all returns would also remove paragraph formatting. So what
you do first is to change all _double_ returns (at the end of a paragraph)
to a temporary code (like two asterisks: **). This is achieved with:

Find: ^13^13 (you actually type the carret in the dialog box)
Replace with: ** (or whatever unique code you like)

Now it's time to remove all _single_ returns (at the end of each line)

Find: ^13 (again, also type the carret)
Replace with: <zilch>

And now turn the temporary code back into double returns:

Find: **
Replace with: ^13^13

That's it.

        Paul Molenaar

	"Just checking the walls"
		- Basil Fawlty -
-- 
        Paul Molenaar

	"Just checking the walls"
		- Basil Fawlty -
Technical Details
Message-ID: <272@nikhefk.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!mcvax!nikhefk!paulm
References: <2089@sputnik.COM>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!mcvax!nikhefk!paulm
From: paulm@nikhefk.UUCP (Paul Molenaar)
Newsgroups: comp.sys.mac
Subject: Re: What do you use to remove Paragraph Returns from your Text?
Message-ID: <272@nikhefk.UUCP>
Date: Tue, 27-Oct-87 06:32:13 EST
Article-I.D.: nikhefk.272
Posted: Tue Oct 27 06:32:13 1987
Date-Received: Thu, 29-Oct-87 06:15:32 EST
References: <2089@sputnik.COM>
Reply-To: paulm@nikhefk.UUCP (Paul Molenaar)
Organization: Nikhef-K, Amsterdam (the Netherlands).
Lines: 40
Keywords: Clipper, MacWrite, Text