Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

Last modified 8 years ago

#6272 closed defect (wontfix)

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

Reported by: anonymous Owned by: Christian Boos
Priority: normal Milestone:
Component: wiki system Version: 0.10.4
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal 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 (0)

Change History (4)

comment:1 by Christian Boos, 17 years ago

Resolution: wontfix
Status: newclosed

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.

comment:3 by anonymous, 8 years ago

You can write:

* [https://en.wikipedia.org/wiki/Jakob_Nielsen_(usability_consultant)]
* [https://en.wikipedia.org/wiki/Jakob_Nielsen_(usability_consultant) Jakob Nielsen]
* https:"//en.wikipedia.org/wiki/Jakob_Nielsen_(usability_consultant)"
* or even wikipedia:"Jakob_Nielsen_(usability_consultant)" 

To get:

comment:4 by Christian Boos, 8 years ago

Or: <https://en.wikipedia.org/wiki/Jakob_Nielsen_(usability_consultant)>.

Keeping parentheses out is a must so that we can easily embed an URL within parentheses (e.g. http://trac.edgewall.org). Same reasoning (and workarounds) for other trailing punctuation, but I see I already explained this in comment:1 ;-)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.