Avoid coalescing text with mixed PCDATA and tspan content.
https://bugzilla.gnome.org/show_bug.cgi?id=624158
https://bugzilla.gnome.org/show_bug.cgi?id=581108
https://bugzilla.wikimedia.org/show_bug.cgi?id=17174
https://bugzilla.wikimedia.org/show_bug.cgi?id=24349
2010-07-12 Martin von Gagern

diff --git a/rsvg-base.c b/rsvg-base.c
index 6d7a5c3..2ce0595 100644
--- a/rsvg-base.c
+++ b/rsvg-base.c
@@ -727,6 +727,9 @@ rsvg_characters_impl (RsvgHandle * ctx, const xmlChar * ch, int len)
                 if (!strcmp (node->type->str, "RSVG_NODE_CHARS")) {
                     self = (RsvgNodeChars*)node;
                 }
+                else if (!strcmp (node->type->str, "tspan")) {
+                    self = NULL;
+                }
             }
 
             if (self != NULL) {
