aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-06-14 23:49:14 +0800
committerDan Winship <danw@src.gnome.org>2000-06-14 23:49:14 +0800
commitf73a4deee4fe176b59a04eee2d2ad119ac53d130 (patch)
tree8191a05bec875852c721db3fa3efb85560d26f99 /composer
parent650af89b075ba40f23018ff1c2a56b0e987f2892 (diff)
downloadgsoc2013-evolution-f73a4deee4fe176b59a04eee2d2ad119ac53d130.tar
gsoc2013-evolution-f73a4deee4fe176b59a04eee2d2ad119ac53d130.tar.gz
gsoc2013-evolution-f73a4deee4fe176b59a04eee2d2ad119ac53d130.tar.bz2
gsoc2013-evolution-f73a4deee4fe176b59a04eee2d2ad119ac53d130.tar.lz
gsoc2013-evolution-f73a4deee4fe176b59a04eee2d2ad119ac53d130.tar.xz
gsoc2013-evolution-f73a4deee4fe176b59a04eee2d2ad119ac53d130.tar.zst
gsoc2013-evolution-f73a4deee4fe176b59a04eee2d2ad119ac53d130.zip
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
Diffstat (limited to 'composer')
-rw-r--r--composer/ChangeLog5
-rw-r--r--composer/e-msg-composer.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index 41c9182d85..720d5dd3f5 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -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,
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 45194184cc..d63e432b40 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -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;