View Single Post
Old 02-27-2010, 06:46 PM   #4
nerys
Addict
nerys began at the beginning.
 
nerys's Avatar
 
Posts: 243
Karma: 48
Join Date: Dec 2006
Device: PRS 500 - REB 1200
I don't want word (to pay for it OR to have it cluttering my hard disk) so I found an alternative.

The problem is you have to use multiple steps since you want get RID Of LB's but want to KEEP LBLB's (double line breaks)

I use notepad++

CTRL H to bring up replace.

First pass

replace the DESIRED LBLB to something else

from: \r\n\r\n (be sure to dot EXTENDED below)
To: DOUBLEBREAK (or anything else not likely to appear in your text)

run it

now run this

from: \r\n
to: Nothing (literally nothing leave it blank)

there all the LB's are now deleted

now run this

From: DOUBLEBREAK
to: \r\n\r\n

there you go. All done. I am still working on a way to automate this somehow into a macro or something.

These are coming from PDF so I use office convert to convert them to RTF I open in word pad and use file save to reduce file size (have not tried to skip this step yet)

then open in notepad++ and run those replacement routines save as text file. Works a treat.

I will try saving as RTF too see if it makes any difference in size or anything like that.
nerys is offline   Reply With Quote