Modify ↓
Opened 16 years ago
Closed 16 years ago
#7733 closed defect (wontfix)
fall back to mime detection for svn:mime-type=text/plain
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | |
Component: | version control/browser | Version: | 0.11.1 |
Severity: | minor | Keywords: | mimeview |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Some svn clients seem to set svn:mime-type=text/plain for non-binary files by default. Currently this causes the trac browser syntax coloring (at least using pygments in 0.11) to indeed render those files as plain text without any syntax coloring.
I would argue that for text/plain as the most generic text mime-type, the desired behaviour should be to fall back on detecting a more specific mime-type with the usual mechanisms (file extension etc.)
Attachments (0)
Note:
See TracTickets
for help on using tickets.
The problem with this is how do you explicitly force something to be plain text? This sounds like a bug in whatever subversion client you are using.