Re: exclamation mark in code block generates error tag around !

"Jeff Hinrichs - DM&T" <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <CALHZEO_iAttLGk0cTB7NjTimT-eUX2MjSM_0xpVwzPW3O9fy4Q@mail.gmail.com>
for completeness:

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

rst2html.py --verbose exclamation.rst exclamation.html


On Fri, Jan 1, 2016 at 8:57 AM, Jeff Hinrichs - DM&T <[email protected]>
wrote:

> 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">&gt;&gt;&gt;</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">&gt;&gt;&gt;</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
>
>


-- 
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.