diff options
author | Milan Crha <mcrha@redhat.com> | 2008-08-27 16:42:42 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2008-08-27 16:42:42 +0800 |
commit | 2523517e68c8d9ae2a8588cd46125192c08d7b43 (patch) | |
tree | 68d5d8f2d127fdfaf2227b2ae884ae667952657a | |
parent | 5e8b1fdf491dd63a0bebb5b7d485ee3f8d87ab12 (diff) | |
download | gsoc2013-evolution-2523517e68c8d9ae2a8588cd46125192c08d7b43.tar.gz gsoc2013-evolution-2523517e68c8d9ae2a8588cd46125192c08d7b43.tar.zst gsoc2013-evolution-2523517e68c8d9ae2a8588cd46125192c08d7b43.zip |
** Fix for bug #523327
2008-08-27 Milan Crha <mcrha@redhat.com>
** Fix for bug #523327
* gui/e-cal-component-preview.c: (write_html):
* gui/e-cal-component-memo-preview.c: (write_html):
Show description in monospace font and wrap lines too.
svn path=/trunk/; revision=36103
-rw-r--r-- | calendar/ChangeLog | 8 | ||||
-rw-r--r-- | calendar/gui/e-cal-component-memo-preview.c | 6 | ||||
-rw-r--r-- | calendar/gui/e-cal-component-preview.c | 6 |
3 files changed, 14 insertions, 6 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 630ae57896..6ab3e94059 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,11 @@ +2008-08-27 Milan Crha <mcrha@redhat.com> + + ** Fix for bug #523327 + + * gui/e-cal-component-preview.c: (write_html): + * gui/e-cal-component-memo-preview.c: (write_html): + Show description in monospace font and wrap lines too. + 2008-08-22 Tobias Mueller <tobiasmue@svn.gnome.org> * gui/print.c (print_table_draw_page): diff --git a/calendar/gui/e-cal-component-memo-preview.c b/calendar/gui/e-cal-component-memo-preview.c index 5f65001d25..f4107efe84 100644 --- a/calendar/gui/e-cal-component-memo-preview.c +++ b/calendar/gui/e-cal-component-memo-preview.c @@ -199,13 +199,13 @@ write_html (GtkHTMLStream *stream, ECal *ecal, ECalComponent *comp, icaltimezone gtk_html_stream_printf (stream, "<TR><TD VALIGN=\"TOP\" ALIGN=\"RIGHT\"><B>%s</B></TD>", _("Description:")); - gtk_html_stream_printf (stream, "<TD><PRE>"); + gtk_html_stream_printf (stream, "<TD><TT>"); for (node = l; node != NULL; node = node->next) { char *html; text = * (ECalComponentText *) node->data; - html = camel_text_to_html (text.value ? text.value : "", CAMEL_MIME_FILTER_TOHTML_CONVERT_URLS | CAMEL_MIME_FILTER_TOHTML_CONVERT_ADDRESSES, 0); + html = camel_text_to_html (text.value ? text.value : "", CAMEL_MIME_FILTER_TOHTML_CONVERT_NL | CAMEL_MIME_FILTER_TOHTML_CONVERT_SPACES | CAMEL_MIME_FILTER_TOHTML_CONVERT_URLS | CAMEL_MIME_FILTER_TOHTML_CONVERT_ADDRESSES, 0); if (html) gtk_html_stream_printf (stream, "%s", html); @@ -213,7 +213,7 @@ write_html (GtkHTMLStream *stream, ECal *ecal, ECalComponent *comp, icaltimezone g_free (html); } - gtk_html_stream_printf (stream, "</PRE></TD></TR>"); + gtk_html_stream_printf (stream, "</TT></TD></TR>"); e_cal_component_free_text_list (l); } diff --git a/calendar/gui/e-cal-component-preview.c b/calendar/gui/e-cal-component-preview.c index 05b84bef30..3d8be3abd2 100644 --- a/calendar/gui/e-cal-component-preview.c +++ b/calendar/gui/e-cal-component-preview.c @@ -290,13 +290,13 @@ write_html (GtkHTMLStream *stream, ECal *ecal, ECalComponent *comp, icaltimezone gtk_html_stream_printf (stream, "<TR><TD VALIGN=\"TOP\" ALIGN=\"RIGHT\"><B>%s</B></TD>", _("Description:")); - gtk_html_stream_printf (stream, "<TD><PRE>"); + gtk_html_stream_printf (stream, "<TD><TT>"); for (node = l; node != NULL; node = node->next) { char *html; text = * (ECalComponentText *) node->data; - html = camel_text_to_html (text.value ? text.value : "", CAMEL_MIME_FILTER_TOHTML_CONVERT_URLS | CAMEL_MIME_FILTER_TOHTML_CONVERT_ADDRESSES, 0); + html = camel_text_to_html (text.value ? text.value : "", CAMEL_MIME_FILTER_TOHTML_CONVERT_NL | CAMEL_MIME_FILTER_TOHTML_CONVERT_SPACES | CAMEL_MIME_FILTER_TOHTML_CONVERT_URLS | CAMEL_MIME_FILTER_TOHTML_CONVERT_ADDRESSES, 0); if (html) gtk_html_stream_printf (stream, "%s", html); @@ -304,7 +304,7 @@ write_html (GtkHTMLStream *stream, ECal *ecal, ECalComponent *comp, icaltimezone g_free (html); } - gtk_html_stream_printf (stream, "</PRE></TD></TR>"); + gtk_html_stream_printf (stream, "</TT></TD></TR>"); e_cal_component_free_text_list (l); } |