Opened 2 years ago

Last modified 8 months ago

#10292 accepted defect

Line number IDs are not necessarily unique

Reported by: rjollos Owned by: rjollos
Priority: high Component: LinenoMacro
Severity: normal Keywords:
Cc: Trac Release: 0.12


In [11941], the IHTMLPreviewAnnotator that is utilized was changed to trac.mimeview.api.LineNumberAnnotator, which includes an anchor for each line number. If there is more than one line-numbered code block in a resource, then the line numbers will not be unique.

This was brought to my attention in the ticket for adding the feature to the Trac core, t:#10834.

Attachments (0)

Change History (3)

comment:1 Changed 2 years ago by rjollos

(In [11954]) Refs #10292: (1.2dev) Modified generation of anchor ids to ensure that the id associated with each line number will be unique for the resource. The ids are of the form a\d-L\d (e.g. a1-L1).

comment:2 Changed 2 years ago by rjollos

  • Priority changed from normal to high
  • Status changed from new to assigned

comment:3 Changed 8 months ago by rjollos

  • Status changed from assigned to accepted

Add Comment

Modify Ticket

as accepted .

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

Note: See TracTickets for help on using tickets.