#3390: small fix for `trac.mimeview.api.convert_content()`
------------------------------------------------------+---------------------
Reporter: Shun-ichi Goto <[EMAIL PROTECTED]> | Owner: jonas
Type: defect | Status: new
Priority: normal | Milestone:
Component: wiki | Version: devel
Severity: normal | Keywords:
------------------------------------------------------+---------------------
`convert_content()` should returns 3 elements of tuple.
Here is a patch against current svn HEAD.
{{{
#!diff
--- trac\mimeview\api.py (revision 891)
+++ trac\mimeview\api.py (local)
@@ -304,7 +304,7 @@
`key`, which can be either a MIME type or a key. Returns a tuple
of
(content, output_mime_type, extension)."""
if not content:
- return ('', 'text/plain;charset=utf-8')
+ return ('', 'text/plain;charset=utf-8', 'txt')
# Ensure we have a MIME type for this content
full_mimetype = mimetype
}}}
--
Ticket URL: <http://trac.edgewall.org/ticket/3390>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets