From: Daiki Ueno Date: Thu, 24 Sep 2015 22:53:04 +0000 (+0900) Subject: its: Output entity reference X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a370db1ac6bbe6d69a52b58e7d2f5600eb723b49;p=thirdparty%2Fgettext.git its: Output entity reference --- diff --git a/gettext-tools/src/its.c b/gettext-tools/src/its.c index 73c8ccef6..689f1185f 100644 --- a/gettext-tools/src/its.c +++ b/gettext-tools/src/its.c @@ -430,6 +430,7 @@ _its_collect_text_content (xmlNode *node, whitespace_type_ty whitespace) switch (n->type) { case XML_TEXT_NODE: + case XML_CDATA_SECTION_NODE: { xmlOutputBuffer *buffer = xmlAllocOutputBuffer (NULL); xmlTextWriter *writer = xmlNewTextWriter (buffer); @@ -467,6 +468,10 @@ _its_collect_text_content (xmlNode *node, whitespace_type_ty whitespace) } break; + case XML_ENTITY_REF_NODE: + content = xasprintf ("&%s;", (const char *) n->name); + break; + default: break; }