[PATCH] Strip preceding tabs from Date headers too

View: New views
1 Messages — Rating Filter:   Alert me  

[PATCH] Strip preceding tabs from Date headers too

by Paul Bolle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...>
+
+ * em-format-html.c: (efh_format_header):
+ Strip preceding tabs from Date headers too.
+
 2008-05-26  Milan Crha  <mcrha@...>
 
  ** 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 */

_______________________________________________
Evolution-patches mailing list
Evolution-patches@...
http://mail.gnome.org/mailman/listinfo/evolution-patches