Modify ↓
Opened 18 years ago
Closed 18 years ago
#3390 closed defect (fixed)
small fix for `trac.mimeview.api.convert_content()`
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | wiki system | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
convert_content()
should returns 3 elements of tuple.
Here is a patch against current svn HEAD.
-
trac\mimeview\api.py
304 304 `key`, which can be either a MIME type or a key. Returns a tuple of 305 305 (content, output_mime_type, extension).""" 306 306 if not content: 307 return ('', 'text/plain;charset=utf-8' )307 return ('', 'text/plain;charset=utf-8', 'txt') 308 308 309 309 # Ensure we have a MIME type for this content 310 310 full_mimetype = mimetype
Attachments (0)
Note:
See TracTickets
for help on using tickets.
Fixed in r3623. See also #3581.