[evolution-patches] [PATCH] Strip preceding tabs from Date headers too
- From: Paul Bolle <pebolle tiscali nl>
- To: evolution-patches <evolution-patches gnome org>
- Subject: [evolution-patches] [PATCH] Strip preceding tabs from Date headers too
- Date: Tue, 27 May 2008 16:24:58 +0200
0) I noticed that messages from the Linux kernel mailing list were
displayed with some extra whitespace between the "Date:" label and that
header's value. It turns out that this mailing list uses a tab to
separate the Date header an its value. (That list uses tabs in other
headers too, but those tabs are not displayed by Evolution, for some
reason I did not investigate.)
1) This is caused by efh_format_header(), which only strips preceding
spaces in Date headers. I suggest it strips preceding tabs too. This
trivial patch does just that.
Paul Bolle
---
Index: mail/ChangeLog
===================================================================
--- mail/ChangeLog (revision 35555)
+++ mail/ChangeLog (working copy)
@@ -1,3 +1,8 @@
+2008-05-27 Paul Bolle <pebolle tiscali nl>
+
+ * em-format-html.c: (efh_format_header):
+ Strip preceding tabs from Date headers too.
+
2008-05-26 Milan Crha <mcrha redhat com>
** Fix for bug #317755
Index: mail/em-format-html.c
===================================================================
--- mail/em-format-html.c (revision 35555)
+++ mail/em-format-html.c (working copy)
@@ -1746,7 +1746,7 @@
struct tm local;
txt = header->value;
- while (*txt == ' ')
+ while (*txt == ' ' || *txt == '\t')
txt++;
/* Show the local timezone equivalent in brackets if the sender is remote */
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]