Edgewall Software
Modify

Ticket #6272 (closed defect: wontfix)

Opened 4 years ago

Last modified 4 years ago

Automatic link creation for URLs in wiki markup does not include ending paren

Reported by: anonymous Owned by: cboos
Priority: normal Milestone:
Component: wiki system Version: 0.10.4
Severity: normal Keywords:
Cc:
Release Notes:
API Changes:

Description

If a URL ends in a closing parenthesis (i.e., ")"), the automatic generation of a link for wiki markup does not include this character.

For example, the autogenerated link for http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long) doesn't include it, and instead generates the following HTML

<a class="ext-link" href="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long"><span class="icon">http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long</span></a>)

There is a workaround, which is to use the square bracket format, like I include my closing paren.

Attachments

Change History

comment:1 Changed 4 years ago by cboos

  • Resolution set to wontfix
  • Status changed from new to closed

Well, the syntax of links in wiki text is intended to mix well with the way people usually use them in plain text, like in e-mails.
It's quite common to write a link within parenthesis, or at the end of a sentence. For this reason, and ending "." or ")" are never considered to be part of a link. If you want more control over the target of the link, you've already figured out that you can explicitly do so by encapsulating it in square brackets [...]:

[http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long)  I include my closing paren].

The exceptional case must require some form of quoting, not the common one.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from cboos. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.