Modify

Opened 5 years ago

Closed 4 years ago

#5475 closed defect (invalid)

Path of filename incorrect - breaks MIME detection for syntax highlighting

Reported by: Haw Loeung Owned by: hvr
Priority: normal Component: GitPlugin
Severity: normal Keywords: syntax highlighting
Cc: h.loeung@… Trac Release: 0.11

Description

It seems that a forward slash ('/') is being appended to the end of the filename. This breaks syntax highlighting for most files because the MIME detection code uses the file extension to determine the MIME type before checking chunks of code.

I have a work around for this by adding code to strip the trailing forward slash ('/') in the GitRepository->get_node() code.

Attachments (1)

trac-gitplugin-fix-pathname.patch (542 bytes) - added by Haw Loeung 5 years ago.
applies cleanly against r6157

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by Haw Loeung

applies cleanly against r6157

comment:1 Changed 4 years ago by hvr

how can I reproduce this problem?

comment:2 Changed 4 years ago by anonymous

  • Resolution set to invalid
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from hvr. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.