Last active
December 15, 2015 11:38
-
-
Save mrvdb/5254151 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
claws$ git request-pull -p master https://github.com/mrvdb/claws-mail.git mrb/quotepatch | |
The following changes since commit a839f1b6111f9a5b9af50fee05095607853530b2: | |
Even less processes (2013-03-22 19:30:32 +0100) | |
are available in the git repository at: | |
https://github.com/mrvdb/claws-mail.git mrb/quotepatch | |
for you to fetch changes up to f826815c41d942b735bdb4a681d9d4927a91a289: | |
Format nested quotes nicer by inserting a space (2013-03-27 12:55:29 +0100) | |
---------------------------------------------------------------- | |
Marcel van der Boom (1): | |
Format nested quotes nicer by inserting a space | |
src/quote_fmt_parse.y | 9 +++++++-- | |
1 file changed, 7 insertions(+), 2 deletions(-) | |
diff --git a/src/quote_fmt_parse.y b/src/quote_fmt_parse.y | |
index 3567ffa..ee40815 100644 | |
--- a/src/quote_fmt_parse.y | |
+++ b/src/quote_fmt_parse.y | |
@@ -461,9 +461,14 @@ static void quote_fmt_show_msg(MsgInfo *msginfo, const gchar *body, | |
if (!signature && strncmp(buf, "-- \n", 4) == 0) | |
break; | |
- if (quoted && quote_str) | |
+ if (quoted && quote_str) { | |
INSERT(quote_str); | |
- | |
+ /* If the buf does not start with quote_str (earlier quote), | |
+ insert a space to separate quote marks from text */ | |
+ if(strncmp(buf,quote_str,strlen(quote_str) != 0)) { | |
+ INSERT(" "); | |
+ } | |
+ } | |
INSERT(buf); | |
} | |
fclose(fp); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment