Date

Can someone please tell me why kindlegen can't handle <pre>?

I have some html:

<pre class="literal-block">
python hello.py </pre>  And kindlegen kindly gives me this? <blockquote> <div align="left"> <tt> <br/> python hello.py<br/>
</blockquote>
</tt>
</div>


Calibre on the other hand seems a little more pleasant::

<blockquote height="1em" width="0pt">
<tt>
<br></br>\$ python hello.py<br></br>
</tt>
</blockquote>


I thought well formed XML was a solved problem. The internet abounds with people claiming that one should only use kindlegen. The hacker in me sees a new rst translater, the realist in me cringes.