Created
December 20, 2012 12:47
-
-
Save mrvdb/4345115 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
diff --git a/src/quote_fmt_parse.y b/src/quote_fmt_parse.y | |
index 3567ffa..06d223f 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) | |
- INSERT(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