Modify ↓
Opened 15 years ago
Closed 15 years ago
#5475 closed defect (invalid)
Path of filename incorrect - breaks MIME detection for syntax highlighting
Reported by: | Haw Loeung | Owned by: | Herbert Valerio Riedel |
---|---|---|---|
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)
Change History (3)
Changed 15 years ago by
Attachment: | trac-gitplugin-fix-pathname.patch added |
---|
comment:2 Changed 15 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
applies cleanly against r6157