On 2010-09-07, Daniel =?ISO-8859-1?Q?Neuh=E4user?= wrote:
>> No, I believe it should, to remain consistent with the aforementioned 
>> case (*foo*bar) and several other examples besides that one (which 
>> docutils, for instance, lumps under the name "character-level inline 
>> markup").

> Well obviously there should be an exception, however it should be clear
> by the message of that exception what is going wrong.

There were several problems with the error output in older Docutils
versions.

It works OK with the development version under Python 2.6 here:

testrole.txt::

  Define the ``ref`` role for docutils:
  
  .. role:: ref
  
  The offending reST (simplified):
  
      :ref:`foo <bar>`<baz>
    
  Adding whitespace after the closing backquotes solves the issue:
      
      :ref:`foo <bar>` <baz>
   
  As does:   
  
      :ref:`foo <bar>`\<baz>
  
      :ref:`foo <bar>`\ <baz>

  which do not show the space in the output.

Running::

  rst2html.py testrole.txt testrole.html
  
I get the expected message::

  testrole.txt:5: (WARNING/2) Inline interpreted text or phrase reference
                              start-string without end-string.


Could you check the Docutils version (``rst2html.py --version``) and check
with Docutils.

If this fails, maybe upgrade Docutils to either the latest release or a
daily snapshot?

Günter

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to