View Single Post
Old 01-20-2012, 10:49 PM   #512
MCBastos
Enthusiast
MCBastos is on a distinguished road
 
Posts: 43
Karma: 70
Join Date: Jan 2012
Location: Brazil
Device: Galaxy A16 5G
Quote:
Originally Posted by Buggins View Post
Thank you for this sample!
I've fixed this bug: 3.0.55-7
Well, to revisit this thing...

Good news and bad news.

The good news: generally speaking, 3.0.55-7 and later versions seem to have fixed the issue. The files which used to word-wrap well, and had stopped word-wrapping, now are again word-wrapping correctly.

The bad news: I ran into a few old files that still present the issue. On trying to figure what they had different from the new ones, the only think I could come up with is that they seem to be old-style Mac text files -- that is, ones that use only CR for new line, instead of CR/LF (as in DOS/Windows) or just LF (as in Linux/Unix/OS X)

The worse news: I tried to *make* a file that would present this problem (I have a text editor which is able to save in any newline format) and I couldn't. I even checked with a binary editor to see if the file was saved as a CR-only text file, and it was -- but CoolReader still displayed it correctly. So it's something more subtle than just the newline format, and I couldn't determine what it is. I'll try sending you one of the troublesome files via e-mail, but I'll have to zip it to avoid some overzealous mailserver "fixing" the newline format...

With old-style MacOS being a ten-year-old relic, new CR-only files are unlikely to come up, and it's easy enough to convert the old files to CR/LF (open in a text editor and save it again), so I don't expect this to be a high-priority bug... but still, it might be worth looking into it.
MCBastos is offline   Reply With Quote