]> granicus.if.org Git - mutt/commitdiff
Fix the \012 bug.
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 2 Jan 2002 09:21:07 +0000 (09:21 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 2 Jan 2002 09:21:07 +0000 (09:21 +0000)
muttlib.c

index 53d696c3453508ca8b39221df84b7e331f30297c..72222316ee7d8d1aa7f02bd32e9e7206f3185dae 100644 (file)
--- a/muttlib.c
+++ b/muttlib.c
@@ -1227,7 +1227,9 @@ void state_attach_puts (const char *t, STATE *s)
   while (*t)
   {
     state_putc (*t, s);
-    if (*t++ == '\n' && *t)
+    if (*t++ == '\n' && *t && IsPrint (*t)) /* Is the IsPrint() here really
+                                            * the right way to fix this?
+                                            */
       state_mark_attach (s);
   }
 }