Opened 16 years ago
Last modified 7 months ago
#6943 new defect
diff renderer has problems processing file names — at Initial Version
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | normal | Milestone: | next-stable-1.6.x |
Component: | rendering | Version: | |
Severity: | minor | Keywords: | diff bitesized |
Cc: | theultramage@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I discovered a glitch in how trac renders unified diffs. Specifically, depending on the old and new filename, the results will vary a lot.
Following are several examples:
same name
-
x.txt
1 1 this is example text 2 2 and one more line 3 no more lines 3 no more lines
different name, no dot in name (in /trunk, this displays as "(a) xxx vs. (b) yyy")
-
(a) xxx vs. (b) yyy
a b 1 1 this is example text 2 2 and one more line 3 no more lines 3 no more lines
different name, dot in name
-
.txt
xxx yyy 1 1 this is example text 2 2 and one more line 3 no more lines 3 no more lines
for reference, this is how it looks like on /trunk r6649
as you can see, the 'xxx' and 'yyy' replaced the 'old'/'new' columns, and the title is completely wrong.
Note:
See TracTickets
for help on using tickets.
screenshot of how a diff of two differently named files with a dot renders like