View Single Post
Old 05-15-2010, 12:33 PM   #1
Halk
Fanatic
Halk ought to be getting tired of karma fortunes by now.Halk ought to be getting tired of karma fortunes by now.Halk ought to be getting tired of karma fortunes by now.Halk ought to be getting tired of karma fortunes by now.Halk ought to be getting tired of karma fortunes by now.Halk ought to be getting tired of karma fortunes by now.Halk ought to be getting tired of karma fortunes by now.Halk ought to be getting tired of karma fortunes by now.Halk ought to be getting tired of karma fortunes by now.Halk ought to be getting tired of karma fortunes by now.Halk ought to be getting tired of karma fortunes by now.
 
Halk's Avatar
 
Posts: 538
Karma: 469999
Join Date: Feb 2008
Location: Scotland
Device: Sony PRS-650 (PRS+ alpha - thanks Kartu!)
Spurious Line Breaks

These have bothered me for a while, however I've now found a simple way to remove them, effectively.

An example of the problem would be in a .txt file where sentences are broken at the end of each line with a carriage return. The problem is that when you read the file on an electronic reader you'll end up with it looking like this.

This is a sample sentence to show how desperately frustrating it is
to read
a book formatted this way, because no matter what you do you will
always end
with too many lines in it. But as I've said I've found a simple way to
get around the problem.

Of course it would be easy to just remove every line break in the document. Problem solved... another created, because paragraphs are gone.

So the simple solution was for me (in MS Word) to replace every pair of paragraph markers with something else. Then remove every paragraph marker. and then replace every "something else" with a paragraph marker.

I'm quite sure it's possible to do that on many different text editors.

I realise it's probably not the biggest revelation in the world, but perhaps it'll help someone who has a .txt file they would like to read electronically.

I'd also be interested if someone knew of a way to do this in batches, rather than my basic time consuming way.
Halk is offline   Reply With Quote