* When doing fixed_output() of converted HTML, output the whole block of
authorArt Cancro <ajc@citadel.org>
Fri, 17 May 2002 03:57:30 +0000 (03:57 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 17 May 2002 03:57:30 +0000 (03:57 +0000)
  data at once instead of one character at a time

citadel/ChangeLog
citadel/msgbase.c

index 2781953b6b33a8cce69a2462f308041b6cdd4daa..d8d61fec726313fd6954eb104a0b321302aab2af 100644 (file)
@@ -1,4 +1,8 @@
  $Log$
+ Revision 591.28  2002/05/17 03:57:30  ajc
+ * When doing fixed_output() of converted HTML, output the whole block of
+   data at once instead of one character at a time
+
  Revision 591.27  2002/05/16 04:44:58  ajc
  * Reduce the number of socket writes when doing fixed_output() to avoid
    getting killed by overhead.  (Thanks to IO for the insight)
@@ -3664,3 +3668,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
+
index f1c066b0303a9237adc7622960018419616a119f..42e6e292aa9743e187c8db6a210588dc74e78e8a 100644 (file)
@@ -906,11 +906,9 @@ void fixed_output(char *name, char *filename, char *partnum, char *disp,
                else if (!strcasecmp(cbtype, "text/html")) {
                        ptr = html_to_ascii(content, 80, 0);
                        wlen = strlen(ptr);
-                       wptr = ptr;
-                       while (wlen--) {
-                               ch = *wptr++;
-                               if (ch==10) cprintf("\r\n");
-                               else cprintf("%c", ch);
+                       client_write(ptr, wlen);
+                       if (ptr[wlen-1] != '\n') {
+                               cprintf("\n");
                        }
                        phree(ptr);
                }