Thread: Is 0.8.4 buggy?
View Single Post
Old 10-15-2015, 03:30 PM   #36
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
Quote:
Originally Posted by KevinH View Post
Hi All,

FWIW, the original thread about doubling of nbsp is here:

https://www.mobileread.com/forums/sho...hlight=libxml2

The interesting point is that it contains a test case that doubled by simply moving from BookView to CodeView and back. Greg if you get a free moment, please grab the test case at that issue and try going back and forth form BookView to CodeView after editing in each.

If you did flick from BV to CV and back every time you split a chapter, by the time you have done it for the 10th chapter you would have ended up with each set of 5 nbsp spaced in a row doubling 10 times!

This woudldcertainly explain the huge number of nbsp you saw when you looked at the "corrupted" file.

Please let us know after checking out that testcase if the same problem is happening for you. If it does, then it is certainly a libxml2 issue.

KevinH
Kevin,

I didn't replicate the test case but I went back and looked at all the individual html files in the "corrupted file." The incremental increase of nbsps is exactly what happened. The only difference was that rather that starting out with five nbsps between the three asterisks so:

*nbspnbspnbspnbspnbsp*nbspnbspnbspnbspnbsp*

there were twenty nbsps in between asterisks in the very first html file. (So the evil bug quadrupled the number of asterisks right off the bat.)

Then yeah, they just grew exponentially from there. (If I'd have gone on to Chapter 11 I think it might have overloaded the Internet and caused a nuclear meltdown somewhere.)
Gregg Bell is offline   Reply With Quote