Skip to content

Instantly share code, notes, and snippets.

@mrvdb
Created October 1, 2013 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrvdb/6775872 to your computer and use it in GitHub Desktop.
Save mrvdb/6775872 to your computer and use it in GitHub Desktop.
Index: src/quote_fmt_parse.y
===================================================================
RCS file: //claws/src/quote_fmt_parse.y,v
retrieving revision 1.22.2.41
diff -u -r1.22.2.41 quote_fmt_parse.y
--- src/quote_fmt_parse.y 16 Sep 2008 12:22:12 -0000 1.22.2.41
+++ src/quote_fmt_parse.y 26 Oct 2009 19:29:41 -0000
@@ -461,9 +461,14 @@
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