[gtkhtml] Coding style and whitespace cleanup.



commit dccef18b0481a1a44b3a4d655b099dd185f21c0b
Author: Matthew Barnes <mbarnes redhat com>
Date:   Mon Aug 2 17:54:33 2010 -0400

    Coding style and whitespace cleanup.

 gtkhtml/htmlengine-edit-cursor.c |    2 +-
 gtkhtml/htmltext.c               |   10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtkhtml/htmlengine-edit-cursor.c b/gtkhtml/htmlengine-edit-cursor.c
index 44386b6..ce59c06 100644
--- a/gtkhtml/htmlengine-edit-cursor.c
+++ b/gtkhtml/htmlengine-edit-cursor.c
@@ -266,7 +266,7 @@ html_engine_draw_table_cursor (HTMLEngine *e)
 
 		html_object_calc_abs_position (to, &cr->x1, &cr->y2);
 		cr->x2 = cr->x1 + to->width - 1;
-		cr->y2 --;
+		cr->y2--;
 		cr->y1 = cr->y2 - (to->ascent + to->descent - 1);
 
 		animate = HTML_IS_TABLE (e->cursor->object) && !html_engine_get_table_cell (e);
diff --git a/gtkhtml/htmltext.c b/gtkhtml/htmltext.c
index ed68804..75309e9 100644
--- a/gtkhtml/htmltext.c
+++ b/gtkhtml/htmltext.c
@@ -2911,11 +2911,11 @@ _html_text_utf8_make_valid (const gchar *name, gint len)
 	total_bytes = remaining_bytes;
 
 	while (remaining_bytes != 0) {
-		if (g_utf8_validate (remainder, remaining_bytes, &invalid)) 
+		if (g_utf8_validate (remainder, remaining_bytes, &invalid))
 			break;
 		valid_bytes = invalid - remainder;
-    
-		if (string == NULL) 
+
+		if (string == NULL)
 			string = g_string_sized_new (remaining_bytes);
 
 		g_string_append_len (string, remainder, valid_bytes);
@@ -2925,10 +2925,10 @@ _html_text_utf8_make_valid (const gchar *name, gint len)
 		remaining_bytes -= valid_bytes + 1;
 		remainder = invalid + 1;
 	}
-  
+
 	if (string == NULL)
 		return g_strndup (name, total_bytes);
-  
+
 	g_string_append (string, remainder);
 
 	g_assert (g_utf8_validate (string->str, -1, NULL));



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