View Single Post
Old 06-07-2014, 03:49 AM   #128
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by JimmXinu View Post
Attached is a test version that uses .toprettyxml(indent=' '...) instead of just .toxml() for the content.opf and toc.ncx files.

I honestly don't see the existing output as problem--it's a machine written file for machines to read. But I'm willing to change to pretty print output as long as it doesn't break machine readability.

I don't remember the details, but I do have some past evidence that pretty printed XML was a problem at one time.
Thanks. I'll give this a try sometime this weekend when I have the time and let you know how it goes. I never thought to check the NCX file. Thanks for that.
JSWolf is offline   Reply With Quote