Edgewall Software

Ticket #568 (closed defect: fixed)

Opened 4 years ago

Last modified 2 years ago

Mime type map for the C formatter is wrong

Reported by: michael.hope@… Owned by: jonas
Priority: normal Milestone: 0.8
Component: wiki system Version: 0.7.1
Severity: normal Keywords:
Cc:

Description

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

Change History

Changed 4 years ago by daniel

  • status changed from new to closed
  • resolution set to fixed

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

Changed 4 years ago by daniel

  • milestone set to 0.8

Add/Change #568 (Mime type map for the C formatter is wrong)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.