*** gnats/ChangeLog Fri Dec 12 21:55:51 1997 --- gnats/ChangeLog Fri Dec 12 21:56:57 1997 *************** *** 1,3 **** --- 1,9 ---- + Mon Oct 6 17:00:00 1997 Abe Feldman + + * pr.c: (read_pr) Unformatted text new has a space at the beginning + of each line, indicating that is is "quoted text". If there is no + "description" field, unformatted text is stored in pr[DESCRIPTION]. + Fri Dec 5 14:18:16 1997 Karl Fogel * file-pr.c (append_report): init `cc' and `subject' to have *** gnats/pr.c Fri Dec 12 21:30:41 1997 --- gnats/pr.c Fri Dec 12 21:57:46 1997 *************** *** 151,157 **** unformatted field can show up anywhere. */ multi_text = FALSE; ! if ((len + unformatted_len) >= unformatted_size) { unformatted_size = (unformatted_size * 2) + 1; unformatted = (char *) xrealloc (unformatted, --- 151,157 ---- unformatted field can show up anywhere. */ multi_text = FALSE; ! if ((len + unformatted_len + 1) >= unformatted_size) { unformatted_size = (unformatted_size * 2) + 1; unformatted = (char *) xrealloc (unformatted, *************** *** 159,166 **** u = unformatted + unformatted_len; } memcpy (u, line, len); ! unformatted_len += len; u += len; } } --- 159,171 ---- u = unformatted + unformatted_len; } + /* Put a space in front of each unformatted line, showing it as + "quoted text" */ + + *u = ' '; + u++; memcpy (u, line, len); ! unformatted_len += (len + 1); u += len; } } *************** *** 204,210 **** xfree (pr[UNFORMATTED].value); } ! pr[UNFORMATTED].value = unformatted; } else xfree (unformatted); --- 209,218 ---- xfree (pr[UNFORMATTED].value); } ! if (pr[DESCRIPTION].value) ! pr[UNFORMATTED].value = unformatted; ! else ! pr[DESCRIPTION].value = unformatted; } else xfree (unformatted);