quote fix for f=f (fixed #3345)
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@57
e385b8ad-14ed-0310-8656-
cc95a2468c6d
Changes specific to mutt-ng:
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
2005-02-06:
* rewrote handler for f=f attachments to produce nicer output
int len = strlen(line);
int i;
int len = strlen(line);
int i;
+ fprintf(stderr,"prefix = `%s'\n",s->prefix);
+
width = COLS - WrapMargin - ql - 1;
if (option(OPTSTUFFQUOTED))
--width;
width = COLS - WrapMargin - ql - 1;
if (option(OPTSTUFFQUOTED))
--width;
/* fprintf(stderr,"print_flowed_line will print `%s' with ql = %d\n",line,ql); */
if (strlen(line)==0) {
/* 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<ql;++i) state_putc('>',s);
for (i=0;i<ql;++i) state_putc('>',s);
+ if (option(OPTSTUFFQUOTED))
+ state_putc(' ',s);
state_putc('\n',s);
return;
}
state_putc('\n',s);
return;
}
} else {
/* fprintf(stderr,"if 1 else\n"); */
}
} else {
/* fprintf(stderr,"if 1 else\n"); */
}
+ if (s->prefix)
+ state_puts(s->prefix,s);
for (i=0;i<ql;++i)
state_putc('>',s);
for (i=0;i<ql;++i)
state_putc('>',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); */
state_puts(oldpos,s);
/* fprintf(stderr,"print_flowed_line: `%s'\n",oldpos); */
+ if (pos<line+len)
+ state_putc(' ',s);
state_putc('\n',s);
oldpos = pos;
}
state_putc('\n',s);
oldpos = pos;
}