View Single Post
Old 01-19-2017, 07:42 AM   #1
CBSA
Junior Member
CBSA began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2017
Device: iPad
Pre-formatted code snippet renders badly

I have an epub that contains Python code snippets which are not rendered correctly (see attached screenshot).

Looking into the source code of the epub file, the code fragments are correctly wrapped with XHTML tags.

Quote:
<pre data-type="programlisting" data-code-language="python"><code class="n"> In</code> <code class="p">[</code>... </pre>
I wonder if this is a problem with css, or something related!? Can anybody perhaps help me with this?
Attached Thumbnails
Click image for larger version

Name:	2017-01-19_13-37-08.png
Views:	311
Size:	17.3 KB
ID:	154304  

Last edited by CBSA; 01-19-2017 at 07:47 AM.
CBSA is offline   Reply With Quote