Wrap and quote, or quote and wrap?
- From: Peter Bloomfield <bloomfld eos ncsu edu>
- To: balsa-list gnome org
- Subject: Wrap and quote, or quote and wrap?
- Date: Tue, 22 May 2001 15:40:07 -0400
One minor annoyance with Balsa and other MUAs is when quoted text is
wrapped and one or two words are displayed as unquoted, as in:
> One minor annoyance with Balsa and other MUAs is
> when quoted text is wrapped and one or two words
are
> displayed as unquoted, as in:
A reasonable fix, which doesn't seem to break anything else (including
active URLs) is to decide on the level of quoting for original message
lines, and apply the appropriate style to wrapped lines. A patch for
src/balsa-message.c (against 1.1.5) is attached.
--- src/balsa-message.c.dist Tue May 22 13:36:35 2001
+++ src/balsa-message.c Tue May 22 13:36:51 2001
@@ -1317,11 +1317,8 @@
GList *url_list = NULL;
fnt = find_body_font(info->body);
- if (bm->wrap_text)
- libbalsa_wrap_string(ptr, balsa_app.wraplength);
-
if (!fnt)
fnt = gdk_fontset_load(balsa_app.message_font);
item = gtk_text_new(NULL, NULL);
@@ -1350,15 +1347,19 @@
("part_info_init_mimetext: url regex compilation failed.");
if (regcomp(&rex, balsa_app.quote_regex, REG_EXTENDED) != 0) {
g_warning
("part_info_init_mimetext: quote regex compilation failed.");
+ if (bm->wrap_text)
+ libbalsa_wrap_string(ptr, balsa_app.wraplength);
gtk_text_insert(GTK_TEXT(item), fnt, NULL, NULL, ptr, -1);
} else {
gint ypos = 0;
lines = l = g_strsplit(ptr, "\n", -1);
for (line = *lines; line != NULL; line = *(++lines)) {
line = g_strconcat(line, "\n", NULL);
+ if (bm->wrap_text)
+ libbalsa_wrap_string(line, balsa_app.wraplength);
quote_level = is_a_quote(line, &rex);
if (quote_level != 0) {
/* Modulus the quote level by the max,
* ie, always have "1 <= quote level <= MAX"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]