Jeff Hinrichs - DM&T
2016-01-01 15:08:02 UTC
rSt:
.. code:: python
HTML: (rst2html) <body> <div class="document"> <pre class="code python literal-block"> <span class="operator">>>></span> <span class="literal
string">'a'</span> <span class="operator"><</span> <span class="literal
string">'b'</span> <span class="name builtin pseudo">True</span> <span class="operator">>>></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"><</span><span class="keyword">class</span> <span
class="error">'</span><span class="name class">int</span><span
class="literal string">'></span> <span class="operator">>>></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"><</span><span class="keyword">class</span> <span
class="error">'</span><span class="name class">float</span><span
class="literal string">'></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?
.. code:: python
'a' < 'b'
Truetype(5)
<class 'int'>type(5.0)
<class 'float'>HTML: (rst2html) <body> <div class="document"> <pre class="code python literal-block"> <span class="operator">>>></span> <span class="literal
string">'a'</span> <span class="operator"><</span> <span class="literal
string">'b'</span> <span class="name builtin pseudo">True</span> <span class="operator">>>></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"><</span><span class="keyword">class</span> <span
class="error">'</span><span class="name class">int</span><span
class="literal string">'></span> <span class="operator">>>></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"><</span><span class="keyword">class</span> <span
class="error">'</span><span class="name class">float</span><span
class="literal string">'></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
Best,
Jeff Hinrichs
402.218.1473