Quote:
Originally Posted by tompe
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?
|
That's it!
Is there a way to use '--rawhtml' and NOT print $text to STDOUT, but rather re-direct (re-open) it internally for the my substitution code to work.
I think what is happening here is that printf to STDOUT in binmode 'actually' generates the para boundaries I want to use. They don't seem to be there when the text is first used i.e my $text = $pdb->text;
-Nick