[Xfce4-commits] <postler:master> Compress subsequent empty lines
Christian Dywan
noreply at xfce.org
Sun Jun 26 07:30:02 CEST 2011
Updating branch refs/heads/master
to 90d77777dce57586db9e9ac09a9867a7d1550f46 (commit)
from 175ca1b0e192c7f81a474b99d72c137d92eace02 (commit)
commit 90d77777dce57586db9e9ac09a9867a7d1550f46
Author: Christian Dywan <christian at twotoasts.de>
Date: Sun Jun 26 07:27:46 2011 +0200
Compress subsequent empty lines
postler/postler-message.vala | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/postler/postler-message.vala b/postler/postler-message.vala
index a4cecad..0c3ea84 100644
--- a/postler/postler-message.vala
+++ b/postler/postler-message.vala
@@ -473,7 +473,7 @@ namespace Postler {
}
if (line[0] == '\t' || line[0] == ' ')
- line = previous_line + " " + line.chug ();
+ line = previous_line + " " + line.chug ();
previous_line = line;
string[] parts = line.split (":", 2);
@@ -516,6 +516,10 @@ namespace Postler {
continue;
}
+ /* Compress subsequent empty lines */
+ if (line == "" && previous_line == line)
+ continue;
+
if (content_encoding == "quoted-printable")
line = quoted_printable_decode (line);
else if (content_encoding == "base64"
More information about the Xfce4-commits
mailing list