Share

reStructuredText

Tracker: Bugs

5 Embedded URIs don't work as advertised - ID: 1764037
Last Update: Comment added ( charlie_x )

Hi,

can't find this in any of the submissions. I really like ReST and use it on
a website in preference to HTML. However, handling URLs can be a problem as
people usually want to work with anonymous URLs such as <a
href="someurl.com">click here</a>

While explicit use of anonymous targets works fine, embedded URLs do not.
According to the documentation the following should work:

`RFC 2396 <http://www.rfc-editor.org/rfc/rfc2396.txt>`__ and `RFC
2732 <http://www.rfc-editor.org/rfc/rfc2732.txt>`__ together
define the syntax of URIs.

It does not work. Instead it raises the following error:

Inline interpreted text or phrase reference start-string without
end-string.

I can't why the parser is raising this error.
` is the start string
and
`__ in the end string so this should be complete


Charlie Clark ( charlie_x ) - 2007-07-30 21:21

5

Closed

Works For Me

David Goodger

parser

None

Public


Comments ( 4 )




Date: 2007-07-31 12:35
Sender: charlie_x


Problem solved! When running in Zope all <> are removed by default which
is why the targets were failing.


Date: 2007-07-31 01:35
Sender: goodgerProject AdminAccepting Donations


Regardless, this is the wrong place for this discussion.
This project is discontinued.

Your input works for me. Something must be missing. Please reopen this
bug at http://sourceforge.net/tracker/?group_id=38414&atid=422030 ,
and include the input file and the exact output. Attach files to the bug
please (do NOT copy & paste into the description). Thanks.


Date: 2007-07-30 22:02
Sender: charlie_x


I did install docutils for this behind Zope. Although it does seem that
Zope comes with an older version. I've deleted that and installed the most
reecent snapshot:
mail:/usr/lib/zope2.9/lib/python# python
Python 2.4.4 (#2, Apr 5 2007, 20:11:18)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import docutils
>>> docutils.__version__
'0.5'

I suspect the problem is related to versions but it does look like I'm
running the most recent. Any way I can check from within a ReST document?


Date: 2007-07-30 21:41
Sender: goodgerProject AdminAccepting Donations


This old project (structuredtext.sf.net) is closed; all development is
being done at docutils.sf.net.

Your example works fine for me.

I suspect you're using very old software. Please update from
http://docutils.sf.net & try again.


Log in to comment.




Attached File

No Files Currently Attached

Changes ( 7 )

Field Old Value Date By
close_date - 2007-07-31 01:35 goodger
status_id Open 2007-07-31 01:35 goodger
status_id Pending 2007-07-30 22:02 charlie_x
close_date 2007-07-30 21:41 2007-07-30 22:02 charlie_x
resolution_id None 2007-07-30 21:41 goodger
status_id Open 2007-07-30 21:41 goodger
close_date - 2007-07-30 21:41 goodger