This one works
authorMiguel de Icaza <miguel@gnome.org>
Thu, 19 Oct 2006 02:57:11 +0000 (02:57 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Thu, 19 Oct 2006 02:57:11 +0000 (02:57 -0000)
svn path=/trunk/mono/; revision=66809

eglib/src/gmarkup.c

index 412553d714626ddc2735389463cfcb3a4669f1e1..7214885b574b19a79d00b778ce0d8157cb90f202 100644 (file)
@@ -410,9 +410,12 @@ g_markup_parse_context_parse (GMarkupParseContext *context,
                        }
                        free (text);
 
+                       while (p < end && *p != '>')
+                               p++;
+                       
                        context->level = context->level->next;
                        g_slist_free_1 (current);
-                       context->state = FLUSH_TEXT;
+                       context->state = TEXT;
                        break;
                } /* case CLOSING_ELEMENT */