exclamation mark in code block generates error tag around !
"Jeff Hinrichs - DM&T" <[email protected]>
| Newsgroups | gmane.text.docutils.user |
|---|---|
| Message-ID | <CALHZEO8VOCRqaFT-P7U1gxDQc8n15vGCZp=L4B6=x6Pe+ObuMA@mail.gmail.com> |
rST:
.. code:: python
>>> print('Hello World!')
Hello World!
>>>
generates the following HTML using rst2html.py
<body>
<div class="document">
<pre class="code python literal-block">
<span class="operator">>>></span> <span
class="keyword">print</span><span class="punctuation">(</span><span
class="literal string">'Hello World!'</span><span
class="punctuation">)</span>
<span class="name">Hello</span> <span class="name">World</span><span
class="error">!</span>
<span class="operator">>>></span>
</pre>
</div>
</body>
NOTE: the <span class="error">!<span> I can not figure out how to escape
the exclamation point.
Any input on what I am doing wrong would be appreciated.
--
Best,
Jeff Hinrichs
402.218.1473
------------------------------------------------------------------------------