Edgewall Software
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: creckord@… 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)

Change History (1)

comment:1 by Noah Kantrowitz, 16 years ago

Resolution: wontfix
Status: newclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.