Modify ↓
#568 closed defect (fixed)
Mime type map for the C formatter is wrong
Reported by: | 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: |
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 (0)
Change History (2)
comment:1 by , 20 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 20 years ago
Milestone: | → 0.8 |
---|
Note:
See TracTickets
for help on using tickets.
Fixed in [816]. Well spotted and thanks for the patch!