View Single Post
Old 03-08-2010, 09:11 AM   #1
mikegr
Junior Member
mikegr began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2010
Device: Aldiko/Android
ebook-convert HTML to EPUB and problem with <pre><code>

Hello,
I have used the ebook-convert from Calibre to convert a HTML file to a Epub ebook.
The HTML file contains a lot of code formatted with the tags pre and code:

<pre><code>source code
text in new line
text in new line
</code><pre>

Calibre doesn't keep the newlines in the generated html file. So the whole source code is in one line in the reader.

Has someone experienced a similar problem? Is there an option for this or a workaround for this kind of formatting?

Regards, mike
mikegr is offline   Reply With Quote