Edgewall Software

Opened 16 years ago

Last modified 7 months ago

#6943 new defect

diff renderer has problems processing file names — at Initial Version

Reported by: theultramage@… 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

     
    11this is example text
    22and one more line
    3 no more lines
     3no 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  
    11this is example text
    22and one more line
    3 no more lines
     3no more lines

different name, dot in name

  • .txt

    xxx yyy  
    11this is example text
    22and one more line
    3 no more lines
     3no more lines

for reference, this is how it looks like on /trunk r6649 http://netvor.sk/~umage/temp/trac/trac-diff-glitch.png

as you can see, the 'xxx' and 'yyy' replaced the 'old'/'new' columns, and the title is completely wrong.

Change History (1)

by theultramage@…, 16 years ago

Attachment: trac-diff-glitch.png added

screenshot of how a diff of two differently named files with a dot renders like

Note: See TracTickets for help on using tickets.