Edgewall Software

Opened 18 years ago

Closed 18 years ago

Last modified 16 years ago

#568 closed defect (fixed)

Mime type map for the C formatter is wrong

Reported by: michael.hope@… Owned by: Jonas Borgström
Priority: normal Milestone: 0.8
Component: wiki system Version: 0.7.1
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


In Wiki.py, the mime type for a C formatter is set to csrc1. This isn't recognised by the source code formatter which causes it to show as unformatted.

Following patch fixes that:

--- trac-0.7.1/trac/Wiki.py     2004-05-26 08:23:01.000000000 +1200
+++ trac/Wiki.py        2004-06-22 08:54:59.935625000 +1200
@@ -250,7 +250,7 @@
     def asp_processor(hdf, text, env):
         return env.mimeview.display(text, 'text/x-asp')
     def c_processor(hdf, text, env):
-        return env.mimeview.display(text, 'text/x-csrcl')
+        return env.mimeview.display(text, 'text/x-csrc')
     def java_processor(hdf, text, env):
         return env.mimeview.display(text, 'text/x-java')
     def cpp_processor(hdf, text, env):

Attachments (0)

Change History (2)

comment:1 by daniel, 18 years ago

Resolution: fixed
Status: newclosed

Fixed in [816]. Well spotted and thanks for the patch!

comment:2 by daniel, 18 years ago

Milestone: 0.8

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström 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.