2006-01-06 [colin] 1.9.100cvs125
authorColin Leroy <colin@colino.net>
Fri, 6 Jan 2006 17:09:22 +0000 (17:09 +0000)
committerColin Leroy <colin@colino.net>
Fri, 6 Jan 2006 17:09:22 +0000 (17:09 +0000)
* src/compose.c
Just make completely sure we don't insert "manual line breaks"
when wrapping...

ChangeLog
PATCHSETS
configure.ac
src/compose.c

index af1c2e3f0f9000216e6abe3dd728480200a7255c..158b356d4e9fb78ba9e006a784d5c2b0c02e158e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-01-06 [colin]     1.9.100cvs125
+
+       * src/compose.c
+               Just make completely sure we don't insert "manual line breaks" 
+               when wrapping... 
+
 2006-01-04 [paul]
 
        * 2.0.0-rc3 released
index eda147122ea96aab1194f893e74e39af617bb468..4bd8418a89d64c625fe6ea10ab26c41bc96757a1 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.654.2.1151 -r 1.654.2.1152 configure.ac;  ) > 1.9.100cvs122.patchset
 ( cvs diff -u -r 1.1.2.29 -r 1.1.2.30 src/plugins/pgpmime/pgpmime.c;  ) > 1.9.100cvs123.patchset
 ( cvs diff -u -r 1.207.2.79 -r 1.207.2.80 src/folderview.c;  ) > 1.9.100cvs124.patchset
+( cvs diff -u -r 1.382.2.213 -r 1.382.2.214 src/compose.c;  ) > 1.9.100cvs125.patchset
index abd8100e83cde2302f6a22c5f84c24cbde66167d..90836d633625460edb27438d42f5f72eb37ab962 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=100
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=124
+EXTRA_VERSION=125
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index cb30d686635cbe99b2804e2735675824bfee4111..9850ab0195728ef2769aa532e742dccff0e1a040 100644 (file)
@@ -3254,6 +3254,7 @@ static gboolean compose_join_next_line(Compose *compose,
                g_warning("alloc error scanning URIs\n"); \
        }
 
+static gboolean automatic_break = FALSE;
 static void compose_beautify_paragraph(Compose *compose, GtkTextIter *par_iter, gboolean force)
 {
        GtkTextView *text = GTK_TEXT_VIEW(compose->text);
@@ -3364,11 +3365,15 @@ static void compose_beautify_paragraph(Compose *compose, GtkTextIter *par_iter,
                                               quote_len)) {
                        GtkTextIter prev, next, cur;
                        
-                       if (prev_autowrap != FALSE || force)
+                       if (prev_autowrap != FALSE || force) {
+                               automatic_break = TRUE;
                                gtk_text_buffer_insert(buffer, &break_pos, "\n", 1);
-                       else if (quote_str && wrap_quote)
+                               automatic_break = FALSE;
+                       } else if (quote_str && wrap_quote) {
+                               automatic_break = TRUE;
                                gtk_text_buffer_insert(buffer, &break_pos, "\n", 1);
-                       else 
+                               automatic_break = FALSE;
+                       } else 
                                goto colorize;
                        /* remove trailing spaces */
                        cur = break_pos;
@@ -8132,11 +8137,13 @@ static void text_inserted(GtkTextBuffer *buffer, GtkTextIter *iter,
                gtk_text_buffer_get_iter_at_mark(buffer, iter, mark);
                gtk_text_buffer_place_cursor(buffer, iter);
        } else {
-               if (strcmp(text, "\n"))
+               if (strcmp(text, "\n") || automatic_break)
                        gtk_text_buffer_insert(buffer, iter, text, len);
-               else
+               else {
+                       debug_print("insert nowrap \\n\n");
                        gtk_text_buffer_insert_with_tags_by_name(buffer, 
                                iter, text, len, "no_join", NULL);
+               }
        }
        
        mark = gtk_text_buffer_create_mark(buffer, NULL, iter, FALSE);