How to Strip Line Breaks from a .TXT File (Windows)

So now you’ve got an ereader and you’ve got all these natty .txt ebooks but – horror! – the line formatting is all screwy. Fear not! As promised, here’s Ms Prue’s own secret recipe for eliminating those pesky breaks in record time.

1) Open and copy your text file.
Control + A = select all
Control + C = copy
(If you’re new to keyboard shortcuts, go on, try them, they’re magic.)

2) Open a new .html file in Word or Open Office.
Paste your ebook text inside.
Control + V = paste

3) Go to “view html” mode.
Here’s where we get tricky. You don’t need to know HTML to be able to do this bit. Just trust me.

4) Bring up the “Find” dialogue box (Control + F) and get to the “Find and Replace” bit.

4.1) Enter <P> in the Find box, and nothing in Replace (this is a quick way to delete a lot of repeated things). Hit “Replace All”.

4.2) Enter </P> in the Find box, and again, nothing in the Replace box.
You have now successfully removed all those pesky line breaks.
Now to put them back in at the end of paragraphs, where they belong.

4.3) Enter <BR> in the Find box and </P><P> in the Replace box.

5) Switch back out of html mode to text editing mode. Control + A (select all) and Control + C (copy) to copy all your freshly formatted text.

6) Open a new Notepad (.txt) file and Control + V (paste) the text into it. Save it as a .txt file.

7) Upload to your ereader and spend the time you just saved deleting line breaks enjoying your ebook instead.

Do you have a different/better method? Problems with the instructions? Leave a comment!


About Prue

Ms Prue is fictional for the purposes of real life but real for the purposes of the internet.
This entry was posted in ereader. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s