aboutsummaryrefslogtreecommitdiff
path: root/src/textview.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-03-16 10:54:29 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-03-16 10:54:29 +0000
commit55a20f917d20a3c255c33063bb38347146205b6d (patch)
treedd1b991a9e06e9f8a2b8e688c0b31ccc4269d13b /src/textview.c
parentb3ac92fc0bc5bdca7c8a73d6041be760df347dda (diff)
added an option whether to render HTML as text or not.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@177 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/textview.c')
-rw-r--r--src/textview.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/textview.c b/src/textview.c
index 8ad0eff1..64480161 100644
--- a/src/textview.c
+++ b/src/textview.c
@@ -713,7 +713,8 @@ static void textview_write_body(TextView *textview, MimeInfo *mimeinfo,
tmpfp = procmime_decode_content(NULL, fp, mimeinfo);
if (tmpfp) {
- if (mimeinfo->mime_type == MIME_TEXT_HTML)
+ if (mimeinfo->mime_type == MIME_TEXT_HTML &&
+ prefs_common.render_html)
textview_show_html(textview, tmpfp, conv);
else
while (fgets(buf, sizeof(buf), tmpfp) != NULL)