Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#2282 closed defect (wontfix)

Invalid link resolution to a file line

Reported by: Emmanuel Blot Owned by: Jonas Borgström
Priority: low Milestone:
Component: wiki system Version: 0.9b2
Severity: minor Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

It seems that wiki syntax such as in:

[source:trunk/COPYING#L3 Line3]

is not interpreted as expected: anchor to line 3 of …/trunk/COPYING

the # symbol forces the link resolution to 'revision L3', which is not valid:

  • #\d+ should be resolved as a specific revision of a file, whereas
  • #\w.* should be resolved as an anchor name

Attachments (0)

Change History (2)

comment:1 by sergey, 17 years ago

It's not too late to abandon using # for revision numbers and use Subversion's designated @ character (see svn diff for example). Such change will disambiguate the notation and fix the problem described here.

comment:2 by Matthew Good, 17 years ago

Milestone: 0.9.1
Resolution: wontfix
Status: newclosed

The use of "#rev" is kept for backwards compatibility, but if you want to link to a line anchor you will need to specify a revision number with the "@rev" syntax adopted for #2011.

For example:

[source:trunk/COPYING@2436#L3 Line 3]

Renders as: Line 3

The rationale is that line numbers can change, so the revision number is needed for the line numbers to be valid.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström 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.