View Single Post
Old 02-20-2008, 01:08 PM   #308
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
Quote:
Originally Posted by nrapallo View Post
What I wanted to do was, in 'mobi2html', recognize that the .pdb file was just text (ie. TEXt/REAd), add the correct HTML code (via substitution) internally and then feed it to HTML::TreeBuilder as fixed text (really now simple HTML code).

However, I will try the <pre>...</pre> to see if I get the desired results.

The test .pdb looked find in ubook (with para breaks and all) but 'mobi2html' somehow looses these para breaks. I want to find a way to 'correct' this internally.
I see. The problem is that TEXt/REAd can contain HTML also and it will work perfectly well. So you can not use this to indicate that it is a text content. Why do you not just use text and use the --rawhtml flag to get just the text? Why do you want mobi2html to wrap the text in HTML?
tompe is offline   Reply With Quote