#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 , 17 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:2 by , 8 years ago
On https://josm.openstreetmap.de/ticket/14697#comment:4 I had to write https://en.wikipedia.org/wiki/Jakob_Nielsen_(usability_consultant%29 Indeed looking like a laughing stock… but https://en.wikipedia.org/wiki/Jakob_Nielsen_(usability_consultant) is a disaster.
comment:3 by , 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 , 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 ;-)
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
[...]
:The exceptional case must require some form of quoting, not the common one.