Allow Excel and Word files be viewed in "Browse Source"
|Reported by:||Owned by:||Jonas Borgström|
The project I'm using trac for has lots of word and excel documents in it that store various aspects of our project. Using xlhtml and wvware, I spit out either text or html fragments that is usable for viewing word docs. In the future, I'd like to support diffs between these word/excel documents.
I've worked on trac 0.8.4 and I noticed that this functionality is acts differently on the trunk. Hopefully, this will be able to move forward without much of an issue.
In File.py, I had to make some changes and pass both a "utf8" and a "raw" version of read data to the Mimeviewer api. This was necessary because the utf8 encoding broke the word document; The image plugin seems to ignore the data and work around the issue by grabbing the RAW data.