Skip to content

Instantly share code, notes, and snippets.

@mrvdb
Created December 20, 2012 12:47
Show Gist options
  • Save mrvdb/4345115 to your computer and use it in GitHub Desktop.
Save mrvdb/4345115 to your computer and use it in GitHub Desktop.
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