diff options
author | Milan Crha <mcrha@redhat.com> | 2007-12-13 17:47:15 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2007-12-13 17:47:15 +0800 |
commit | c73bf5eaa749b85c3b06038a4898b006bdf7491e (patch) | |
tree | 8f2d0a93055cb6bdb672461da6e7e232bbdf6f9f /calendar/gui | |
parent | 75b76dedf1257789ca2d5c74af363606928fbc6a (diff) | |
download | gsoc2013-evolution-c73bf5eaa749b85c3b06038a4898b006bdf7491e.tar.gz gsoc2013-evolution-c73bf5eaa749b85c3b06038a4898b006bdf7491e.tar.zst gsoc2013-evolution-c73bf5eaa749b85c3b06038a4898b006bdf7491e.zip |
** Fix for bug #340267
2007-12-13 Milan Crha <mcrha@redhat.com>
** Fix for bug #340267
* gui/e-cal-component-preview.c: (write_html):
* gui/e-cal-component-memo-preview.c: (write_html):
Show description in preview as preformatted text, so
tabulators are kept instead of treated as white spaces.
svn path=/trunk/; revision=34693
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/e-cal-component-memo-preview.c | 4 | ||||
-rw-r--r-- | calendar/gui/e-cal-component-preview.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/calendar/gui/e-cal-component-memo-preview.c b/calendar/gui/e-cal-component-memo-preview.c index 90a96f0c9e..87bfa265d9 100644 --- a/calendar/gui/e-cal-component-memo-preview.c +++ b/calendar/gui/e-cal-component-memo-preview.c @@ -224,7 +224,7 @@ 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>"); + gtk_html_stream_printf (stream, "<TD><PRE>"); for (node = l; node != NULL; node = node->next) { gint i, j, len; @@ -250,7 +250,7 @@ write_html (GtkHTMLStream *stream, ECal *ecal, ECalComponent *comp, icaltimezone g_string_free (string, TRUE); } - gtk_html_stream_printf (stream, "</TD></TR>"); + gtk_html_stream_printf (stream, "</PRE></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 b46069917c..be3bfa1bdf 100644 --- a/calendar/gui/e-cal-component-preview.c +++ b/calendar/gui/e-cal-component-preview.c @@ -273,7 +273,7 @@ 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>"); + gtk_html_stream_printf (stream, "<TD><PRE>"); for (node = l; node != NULL; node = node->next) { gint i, len; @@ -296,7 +296,7 @@ write_html (GtkHTMLStream *stream, ECal *ecal, ECalComponent *comp, icaltimezone g_string_free (string, TRUE); } - gtk_html_stream_printf (stream, "</TD></TR>"); + gtk_html_stream_printf (stream, "</PRE></TD></TR>"); e_cal_component_free_text_list (l); } |