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
This commit is contained in:
Matthew Loper
2000-03-30 20:33:26 +00:00
parent 1e87b7cd20
commit b642e45d7a
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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");
}