aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2007-12-13 17:47:15 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-12-13 17:47:15 +0800
commitc73bf5eaa749b85c3b06038a4898b006bdf7491e (patch)
tree8f2d0a93055cb6bdb672461da6e7e232bbdf6f9f /calendar
parent75b76dedf1257789ca2d5c74af363606928fbc6a (diff)
downloadgsoc2013-evolution-c73bf5eaa749b85c3b06038a4898b006bdf7491e.tar
gsoc2013-evolution-c73bf5eaa749b85c3b06038a4898b006bdf7491e.tar.gz
gsoc2013-evolution-c73bf5eaa749b85c3b06038a4898b006bdf7491e.tar.bz2
gsoc2013-evolution-c73bf5eaa749b85c3b06038a4898b006bdf7491e.tar.lz
gsoc2013-evolution-c73bf5eaa749b85c3b06038a4898b006bdf7491e.tar.xz
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')
-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);
}