some single quotes in code blocks, wrapped as error in html ouput

"Jeff Hinrichs - DM&T" <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <CALHZEO-FuXxpQU4j-5aR0p=-ArM0d4NbatnkKpOnBhUi8T97Vg@mail.gmail.com>
rSt:

.. code:: python

    >>> 'a' < 'b'
    True
    >>> type(5)
    <class 'int'>
    >>> type(5.0)
    <class 'float'>

HTML: (rst2html)

<body>
<div class="document">


<pre class="code python literal-block">
<span class="operator">&gt;&gt;&gt;</span> <span class="literal
string">'a'</span> <span class="operator">&lt;</span> <span class="literal
string">'b'</span>
<span class="name builtin pseudo">True</span>
<span class="operator">&gt;&gt;&gt;</span> <span class="name
builtin">type</span><span class="punctuation">(</span><span class="literal
number integer">5</span><span class="punctuation">)</span>
<span class="operator">&lt;</span><span class="keyword">class</span> <span
class="error">'</span><span class="name class">int</span><span
class="literal string">'&gt;</span>
<span class="operator">&gt;&gt;&gt;</span> <span class="name
builtin">type</span><span class="punctuation">(</span><span class="literal
number float">5.0</span><span class="punctuation">)</span>
<span class="operator">&lt;</span><span class="keyword">class</span> <span
class="error">'</span><span class="name class">float</span><span
class="literal string">'&gt;</span>
</pre>
</div>
</body>

rst2html.py --verbose class.rst class.html

$ rst2html.py --version
rst2html.py (Docutils 0.12 [release], Python 3.4.3, on linux)

Escaping in a code block does not work, just shows slash and then wraps
following char in an error span tag.
Help?

-- 
Best,

Jeff Hinrichs
402.218.1473

------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.