]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
its: Allow CDATA and comments in translatable node
authorDaiki Ueno <ueno@gnu.org>
Thu, 17 Dec 2015 07:21:58 +0000 (16:21 +0900)
committerDaiki Ueno <ueno@gnu.org>
Thu, 17 Dec 2015 07:21:58 +0000 (16:21 +0900)
* gettext-tools/src/its.c (its_rule_list_is_translatable): Don't return
false on CDATA and comments.

gettext-tools/src/its.c

index a1d78431dcae3971166377631fca7c368cbdecde..ce4880a638b229542e1fe03e1eaef13ba39f5fbd 100644 (file)
@@ -1490,7 +1490,9 @@ its_rule_list_is_translatable (its_rule_list_ty *rules,
           break;
 
         case XML_TEXT_NODE:
+        case XML_CDATA_SECTION_NODE:
         case XML_ENTITY_REF_NODE:
+        case XML_COMMENT_NODE:
           break;
 
         default: