[gtkhtml] Bug #512468 - Wrap Lines keeps spaces in quoted text



commit a86c7dd7c1f53b40804f920d74a115b796a81418
Author: Milan Crha <mcrha redhat com>
Date:   Fri May 21 15:31:26 2010 +0200

    Bug #512468 - Wrap Lines keeps spaces in quoted text

 gtkhtml/htmlengine-edit.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtkhtml/htmlengine-edit.c b/gtkhtml/htmlengine-edit.c
index e904fa0..ea6a766 100644
--- a/gtkhtml/htmlengine-edit.c
+++ b/gtkhtml/htmlengine-edit.c
@@ -476,9 +476,14 @@ try_break_this_line (HTMLEngine *e, guint line_offset, guint last_space)
 				}
 			}
 			if (uc == ' ' || uc == '\t') {
+				gchar c;
+
 				html_engine_insert_empty_paragraph (e);
 				html_engine_delete_n (e, 1, TRUE);
 
+				while (c = html_cursor_get_current_char (e->cursor), c == ' ' || c == '\t')
+					html_engine_delete_n (e, 1, TRUE);
+
 				flow        = e->cursor->object->parent;
 				last_space  = 0;
 				line_offset = 0;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]