Don't line-wrap lines that start with ">".

* e-msg-composer.c (format_text): Don't line-wrap lines that start
	with ">".

svn path=/trunk/; revision=3569
This commit is contained in:
Dan Winship
2000-06-14 15:49:14 +00:00
parent 650af89b07
commit f73a4deee4
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2000-06-14 Dan Winship <danw@helixcode.com>
* e-msg-composer.c (format_text): Don't line-wrap lines that start
with ">".
2000-06-12 Dan Winship <danw@helixcode.com>
* e-msg-composer.c (format_text): If a paragraph starts with TABs,

View File

@ -150,7 +150,7 @@ format_text (char *text)
GString *out;
char *s, *space, *outstr;
int len, tabbing, i;
gboolean linestart = TRUE;
gboolean linestart = TRUE, cited = FALSE;
len = strlen (text);
out = g_string_sized_new (len + len / LINE_LEN);
@ -163,10 +163,11 @@ format_text (char *text)
s++;
tabbing++;
}
cited = (tabbing == 0 && *s == '>');
}
len = strcspn (s, "\n");
if (len > LINE_LEN - tabbing * 8) {
if (!cited && len > LINE_LEN - tabbing * 8) {
/* If we can break anywhere between s and
* s + LINE_LEN, do that. We can break between
* space and anything but &nbsp;