aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Loper <mloper@src.gnome.org>2000-03-31 04:33:26 +0800
committerMatthew Loper <mloper@src.gnome.org>2000-03-31 04:33:26 +0800
commitb642e45d7aedf5654f264004c19a98136fbd60ac (patch)
tree08069c4653bfea02b050901d4aaff9f941d4635c
parent1e87b7cd205c2cd43fef015b7d75dce2c3c7553c (diff)
downloadgsoc2013-evolution-b642e45d7aedf5654f264004c19a98136fbd60ac.tar
gsoc2013-evolution-b642e45d7aedf5654f264004c19a98136fbd60ac.tar.gz
gsoc2013-evolution-b642e45d7aedf5654f264004c19a98136fbd60ac.tar.bz2
gsoc2013-evolution-b642e45d7aedf5654f264004c19a98136fbd60ac.tar.lz
gsoc2013-evolution-b642e45d7aedf5654f264004c19a98136fbd60ac.tar.xz
gsoc2013-evolution-b642e45d7aedf5654f264004c19a98136fbd60ac.tar.zst
gsoc2013-evolution-b642e45d7aedf5654f264004c19a98136fbd60ac.zip
Use <pre> tag to force the use of monospaced fonts.
* camel-formatter.c (handle_text_plain): Use <pre> tag to force the use of monospaced fonts. svn path=/trunk/; revision=2260
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/camel-formatter.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 31ef332e00..8978f68df3 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,8 @@
+2000-03-30 Matt Loper <matt@helixcode.com>
+
+ * camel-formatter.c (handle_text_plain): Use <pre> tag to force
+ the use of monospaced fonts.
+
2000-03-30 Dan Winship <danw@helixcode.com>
* camel-service.c (camel_service_getport): Add a htons in the
diff --git a/camel/camel-formatter.c b/camel/camel-formatter.c
index bed3f4fc5a..1bfbbcf0a7 100644
--- a/camel/camel-formatter.c
+++ b/camel/camel-formatter.c
@@ -639,6 +639,8 @@ handle_text_plain (CamelFormatter *formatter, CamelDataWrapper *wrapper)
camel_stream_write_string (formatter->priv->stream,
"\n<!-- text/plain below -->\n");
+ camel_stream_write_string (formatter->priv->stream,
+ "<pre>\n");
if (strcmp (wrapper->mime_type->subtype, "richtext") == 0) {
@@ -688,6 +690,8 @@ handle_text_plain (CamelFormatter *formatter, CamelDataWrapper *wrapper)
camel_stream_write_string (formatter->priv->stream,
"<b>(empty)</b>");
}
+ camel_stream_write_string (formatter->priv->stream,
+ "</pre>\n");
debug ("handle_text_plain: exiting\n");
}