From 0c528da3f6976cfef3d729d9cd66bd8f265a4060 Mon Sep 17 00:00:00 2001 From: ak1 Date: Thu, 10 Feb 2005 12:42:56 +0000 Subject: [PATCH] Andreas Krennmair: quote fix for f=f (fixed #3345) git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@57 e385b8ad-14ed-0310-8656-cc95a2468c6d --- ChangeLog.mutt-ng | 3 +++ handler.c | 12 +++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog.mutt-ng b/ChangeLog.mutt-ng index b80ee55..7f5a38f 100644 --- a/ChangeLog.mutt-ng +++ b/ChangeLog.mutt-ng @@ -1,5 +1,8 @@ Changes specific to mutt-ng: +2005-02-10: + * quoting fix for f=f handler (fix for bug #3345) + 2005-02-06: * rewrote handler for f=f attachments to produce nicer output diff --git a/handler.c b/handler.c index e53ca37..9cadb72 100644 --- a/handler.c +++ b/handler.c @@ -1207,6 +1207,8 @@ static void print_flowed_line(char * line, STATE *s,int ql) { int len = strlen(line); int i; + fprintf(stderr,"prefix = `%s'\n",s->prefix); + width = COLS - WrapMargin - ql - 1; if (option(OPTSTUFFQUOTED)) --width; @@ -1216,7 +1218,11 @@ static void print_flowed_line(char * line, STATE *s,int ql) { /* fprintf(stderr,"print_flowed_line will print `%s' with ql = %d\n",line,ql); */ if (strlen(line)==0) { + if (s->prefix) + state_puts(s->prefix,s); for (i=0;i',s); + if (option(OPTSTUFFQUOTED)) + state_putc(' ',s); state_putc('\n',s); return; } @@ -1257,11 +1263,15 @@ static void print_flowed_line(char * line, STATE *s,int ql) { } else { /* fprintf(stderr,"if 1 else\n"); */ } + if (s->prefix) + state_puts(s->prefix,s); for (i=0;i',s); - if (option(OPTSTUFFQUOTED) && ql>0) state_putc(' ',s); + if (option(OPTSTUFFQUOTED) && (ql>0 || s->prefix)) state_putc(' ',s); state_puts(oldpos,s); /* fprintf(stderr,"print_flowed_line: `%s'\n",oldpos); */ + if (pos