View Single Post
Old 01-08-2015, 06:16 PM   #1137
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@GeoffR: AFAICT, it currently doesn't even *add* those divs .

So I went ahead and took a hatchet to the code (I've never used lxml, and I'm far from fluent in Python to begin with, so this may very well be awful, code-wise).

My highly scientific test with a single book would point towards success!

That said, I'm also using your (synced) kepub patch for that very issue, so .

EDIT: It appears to be screwing up books using div's instead of p's... On the other hand, those books also don't suffer from the cut-off bug on my device... :?

EDITē: So, take two, with a crappy heuristic to, well, not do it on books that appear to use div tags to handle paragraphs...

Last edited by NiLuJe; 01-10-2015 at 10:13 AM. Reason: Kill deprecated attachements, cf. #1159
NiLuJe is offline   Reply With Quote