Index: htmlengine.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/htmlengine.c,v
retrieving revision 1.645
diff -u -p -r1.645 htmlengine.c
--- htmlengine.c	22 Mar 2006 02:10:35 -0000	1.645
+++ htmlengine.c	24 Mar 2006 03:49:51 -0000
@@ -891,10 +891,12 @@ insert_text (HTMLEngine *e,
 	color = current_color (e);
 
 	if ((create_link || e->flow == NULL || HTML_CLUE (e->flow)->head == NULL) && !e->inPre) {
-		while (*text == ' ')
-			text++;
-		if (*text == 0)
-			return;
+		if (text[0] == ' ' && (text[1] == ' ' || text[1] == 0)) {
+			while (*text == ' ')
+				text++;
+			if (*text == 0)
+				return;
+		}
 	}
 
 	if (e->flow == NULL)
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/ChangeLog,v
retrieving revision 1.2172
diff -u -p -r1.2172 ChangeLog
--- ChangeLog	22 Mar 2006 02:10:35 -0000	1.2172
+++ ChangeLog	24 Mar 2006 03:50:05 -0000
@@ -1,3 +1,9 @@
+2006-03-23  Rohini S  <srohini@novell.com>
+
+	* htmlengine.c: Don't remove leading whitespace.
+
+	Fixes bug 237830
+
 2006-03-22  Andreas Köhler  <andi5.py@gmx.net>
 
 	* htmlengine.c: fix assigning height attributes of <object>s and
