Modify ↓
#1798 closed enhancement (fixed)
Hyperlink anchors to line numbers
Reported by: | Owned by: | Christopher Lenz | |
---|---|---|---|
Priority: | normal | Milestone: | 0.9 |
Component: | version control/browser | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Please consider the ability to link directly to a line number in a source code listing. Mini-patch provided below.
Index: api.py =================================================================== --- api.py (revision 1972) +++ api.py (working copy) @@ -307,7 +307,7 @@ return 'lineno', 'Line', 'Line numbers' def annotate_line(self, number, content): - return '<th id="l%s">%s</th>' % (number, number) + return '<th id="l%s"><a name="l%s" href="#l%s">%s</a></th>' % (number, number, number, number) class PlainTextRenderer(Component):
Attachments (0)
Note:
See TracTickets
for help on using tickets.
FYI, you don't need the
name="l%s"
part, that's already covered by the<th id="l%s">
.