<<< Date Index >>>     <<< Thread Index >>>

Bug 2874 ("> " quoting with f-f)



Sorry, writing to the list since trac claims to have sent me a
password but apparently hasn't yet...

This bug happens for anyone without text_flowed set.  In that case
s->prefix is set to "> " and then another space is added in
print_flowed_line.  Before, there were complaints about getting ">foo"
for f-f; now we get ">  foo" (two spaces).

print_indent is applying s->prefix (i.e. Prefix, indent_string) for the
outermost level of quoting, i.e. the one added by "reply".  Then it's
applying a literal '>' for each level of quoting in what you're
replying to.  Then it's adding a literal space.  This seems very
confused to me.  Maybe it should apply s->prefix each time?

Meanwhile, I'm using this.  I imagine it will still lead to funny
quoting, like "> >>> foo", but at least it's better than nothing.

diff -r 79a874c9ebaf rfc3676.c
--- a/rfc3676.c Tue Apr 10 08:26:56 2007 -0400
+++ b/rfc3676.c Tue Apr 10 09:48:58 2007 -0400
@@ -129,7 +129,7 @@ static void print_flowed_line (const cha
     }
 
     print_indent (ql, s);
-    if (ql > 0 || s->prefix)
+    if (ql > 0 || (s->prefix && option (OPTTEXTFLOWED)))
       state_putc (' ', s);
     state_puts (oldpos, s);
 


-- 
Daniel Jacobowitz
CodeSourcery