Ticket #568 (closed defect: fixed)
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
Note: See
TracTickets for help on using
tickets.


