[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
PATCH: fix handling of plain text release notes
- From: Elliot Peele <elliot rpath com>
- To: anaconda-devel-list redhat com
- Subject: PATCH: fix handling of plain text release notes
- Date: Tue, 10 Apr 2007 16:59:42 -0400
For text documents mime ends up being text/plain.
Elliot
diff -r b27c69867066 iw/release_notes.py
--- a/iw/release_notes.py Mon Apr 09 14:17:40 2007 -0400
+++ b/iw/release_notes.py Tue Apr 10 16:42:47 2007 -0400
@@ -137,7 +137,7 @@ class ReleaseNotesViewer:
headers = f.info()
mime = headers.getheader('Content-type')
- if mime:
+ if mime == 'text/html':
self.doc.open_stream(mime)
self.doc.write_stream(f.read())
else:
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]