Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Long Documents / November 2005

Tip: Looking for answers? Try searching our database.

How to eliminate line-breaks but preserve blank lines?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joseph Geretz - 20 Nov 2005 02:31 GMT
I received a basic Notepad file which I need to convert to Word. The Notepad
file contains unwanted line-breaks which break every line at about 60
characters. I want to eliminate all line breaks except for line-breaks
immediately before and after a blank line, since these are effectively
paragraph separators. How can I do this?

Thanks very much for your help.

Joseph Geretz
Joseph Geretz - 20 Nov 2005 02:45 GMT
Just to clarify: The marks at the end of each line are paragraph markers,
each paragraph is separated by a blank line.

Here's how I worked around this:

Replace: -^p with Nothing. (Eliminates hyphenated words)
Replace: ^p with Space. (Eliminates hard line-breaks)
Replace SpaceSpace with ^p^p (Restores paragraph breaks)

I think this took care of 98% of my formatting needs, but now I'll have to
scan through this and make minor adjustments. I guess there's got to be a
better way?

Thanks,

Joseph Geretz

>I received a basic Notepad file which I need to convert to Word. The
>Notepad file contains unwanted line-breaks which break every line at about
[quoted text clipped - 5 lines]
>
> Joseph Geretz
Jay Freedman - 20 Nov 2005 04:20 GMT
Hi Joseph,

The next time you have this kind of job to do, see
http://www.word.mvps.org/FAQs/Formatting/CleanWebText.htm.

--
Regards,
Jay Freedman
Microsoft Word MVP        FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

>Just to clarify: The marks at the end of each line are paragraph markers,
>each paragraph is separated by a blank line.
[quoted text clipped - 22 lines]
>>
>> Joseph Geretz
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.