Submitted by : simon at: 2003-10-26T21:31:44+00:00 (17 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

KentT on GeneralDiscussion:

Howdy, I'm unable to display the following URL as a link, it ends at the first *.

Any suggestions? Thanks

Wim Bekker 2002/11/11:

I've got it as a link. To type such a link, and links with spaces, I use " surrounding the text.


To Wim Bekker: This is an unfortunate Effect caused by the brain damaged StructuredText engine delivered with Zope. BTW: The asterisk in ViewCVS? URLs? is rather new: It used to be a tilde before but people complained, that the tilde is an invalid character and gives problems with there browser, so I decided to replace it with an asterisk a while ago (I'm one of the contributors of the ViewCVS? project and have cvs commit access). Since ViewCVS? is backward compatible, you can use the tilde instead of the asterisk in Wiki pages like for example:

If ZWiki ever follows the RestructuredText road, these kind of problems will hopefully disappear.


Is this also true for ; : http://localhost/[email protected]=square;peg I believe I saw this noted on BillSeitz page.


property change --simon, Sat, 27 Sep 2003 21:30:36 -0700 reply
Category: general => formatting and rendering

Any URL? -- Fri, 15 Oct 2004 15:11:24 -0700 reply


Got a patch for this --betabug, Thu, 15 May 2008 07:14:17 -0700 reply
Will be in a darcs repo near you any moment:

  hunk ./ 17
  -urlchars = r'[A-Za-z0-9/:;@_%~#=&\.\-\?\+\$,]+'
  +urlchars = r'[A-Za-z0-9/:;@_%~#=&*\.\-\?\+\$,]+'

fix is in -unstable repo, closing --betabug, Fri, 16 May 2008 09:41:50 -0700 reply
Status: open => closed

fix works only for one * - reopening --betabug, Tue, 03 Jun 2008 01:47:09 -0700 reply
Status: closed => open

if there are two asterisks, at least RST transforms them into italics, thereby breaking the link

this seems to be a RST thing --betabug, Tue, 03 Jun 2008 13:43:50 -0700 reply
The same happens with RST used outside of Zwiki, so either we report this upstream, or we try to work around it in our code. I feel a bit reluctant to work around it, but am willing to hear opinions...

update --simon, Fri, 30 Jan 2009 14:18:02 -0800 reply

I think the assertion that was added to test_markLinksIn isn't enough of a test; it passes, but in real stx and rst pages, urls containing one or two stars still show the problem (except for one star on a stx page.)

workaround --simon, Fri, 30 Jan 2009 14:20:21 -0800 reply
Here's one workaround: on rst pages, you can prefix each asterisk with a backslash (\\): http://some/\*/where