aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog9
-rw-r--r--calendar/gui/e-cal-component-memo-preview.c4
-rw-r--r--calendar/gui/e-cal-component-preview.c4
3 files changed, 13 insertions, 4 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 4d3848ede0..9ea9312276 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,12 @@
+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.
+
2007-12-11 Sankar P <psankar@novell.com>
** Fix for bug #501969
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);
}