Modify ↓
Opened 11 years ago
Last modified 14 months ago
#11445 new defect
Empty lines are invisible when hiding line column on browser view
Reported by: | Jun Omae | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | next-stable-1.6.x |
Component: | version control/browser | Version: | 1.0-stable |
Severity: | normal | Keywords: | |
Cc: | Ryan J Ollos | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Attachments (2)
Change History (8)
by , 11 years ago
Attachment: | visible-line-column.png added |
---|
by , 11 years ago
Attachment: | hidden-line-column.png added |
---|
comment:2 by , 11 years ago
I found workaround to show empty lines and copy to clipboard. It works well with Firefox 26 and Chrome 33 beta.
-
trac/mimeview/api.py
diff --git a/trac/mimeview/api.py b/trac/mimeview/api.py index 47e1926..ae18947 100644
a b class Mimeview(Component): 864 864 annotator.annotate_row(context, row, idx+1, line, data) 865 865 else: 866 866 row.append(tag.td()) 867 row.append(tag.td(line ))867 row.append(tag.td(line, tag.br)) 868 868 yield row 869 869 870 870 return tag.table(class_='code')(
However, even with/without the workaround, the copied text to clipboard is broken with Internet Explorer.
IE 8 | IE 11 |
---|---|
[egg_info] 2 tag_build = dev 3 tag_svn_revision = true 4 ... |
[egg_info] tag_build = dev tag_svn_revision = true ... |
comment:4 by , 8 years ago
Milestone: | next-stable-1.0.x → next-stable-1.2.x |
---|
Moved ticket assigned to next-stable-1.0.x since maintenance of 1.0.x is coming to a close. Please move the ticket back if it's critical to fix on 1.0.x.
comment:5 by , 5 years ago
Milestone: | next-stable-1.2.x → next-stable-1.4.x |
---|
Note:
See TracTickets
for help on using tickets.
Nice catch. I didn't even know the hide column of line numbers feature exists!