[lasem] mathml: support for element prefixed by 'math:'
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lasem] mathml: support for element prefixed by 'math:'
- Date: Wed, 26 Sep 2012 07:50:58 +0000 (UTC)
commit 2388f10a2545cba6fb7490a0bc5a0519b1f460ce
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Wed Sep 26 09:50:25 2012 +0200
mathml: support for element prefixed by 'math:'
src/lsmmathmldocument.c | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/src/lsmmathmldocument.c b/src/lsmmathmldocument.c
index cf3e3b6..8f84498 100644
--- a/src/lsmmathmldocument.c
+++ b/src/lsmmathmldocument.c
@@ -64,7 +64,7 @@ lsm_mathml_document_can_append_child (LsmDomNode *self, LsmDomNode *child)
/* LsmDomDocument implementation */
static LsmDomElement *
-lsm_mathml_document_create_element (LsmDomDocument *document, const char *tag_name)
+_create_element (LsmDomDocument *document, const char *tag_name)
{
LsmDomNode *node = NULL;
@@ -136,6 +136,21 @@ lsm_mathml_document_create_element (LsmDomDocument *document, const char *tag_na
return LSM_DOM_ELEMENT (node);
}
+static LsmDomElement *
+lsm_mathml_document_create_element (LsmDomDocument *document, const char *tag_name)
+{
+ LsmDomElement *element;
+
+ element = _create_element (document, tag_name);
+ if (element != NULL)
+ return element;
+
+ if (g_str_has_prefix (tag_name, "math:"))
+ return _create_element (document, &tag_name[4]);
+
+ return NULL;
+}
+
static LsmDomView *
lsm_mathml_document_create_view (LsmDomDocument *document)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]