diff options
author | Wu Xiaotian <[email protected]> | 2019-11-25 15:32:16 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-12-01 11:39:44 +0100 |
commit | e4bd57fac54005ed7cdcc859989b88bfc3934448 (patch) | |
tree | 4ac9f681d0ca0b869dff2aa05d4adfd39c8f50c3 /plugins/taglist | |
parent | 87c3255aafd06d65138d712539d5d8b6214dd985 (diff) | |
download | pluma-e4bd57fac54005ed7cdcc859989b88bfc3934448.tar.bz2 pluma-e4bd57fac54005ed7cdcc859989b88bfc3934448.tar.xz |
ignore comment element in xml file
When xml file is generated using intltool, the resulting xml file deletes the
comment line, but when using gettext, it keeps the comment line.
Diffstat (limited to 'plugins/taglist')
-rw-r--r-- | plugins/taglist/pluma-taglist-plugin-parser.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/taglist/pluma-taglist-plugin-parser.c b/plugins/taglist/pluma-taglist-plugin-parser.c index 75c06f39..6f18dbc5 100644 --- a/plugins/taglist/pluma-taglist-plugin-parser.c +++ b/plugins/taglist/pluma-taglist-plugin-parser.c @@ -120,6 +120,11 @@ parse_tag_group (TagGroup *tg, const gchar* fn, xmlDocPtr doc, while (cur != NULL) { + if (xmlStrcmp (cur->name, (const xmlChar *) "comment") == 0) + { + cur = cur->next; + } + if ((xmlStrcmp (cur->name, (const xmlChar *) "Tag")) || (cur->ns != ns)) { g_warning ("The tag list file '%s' is of the wrong type, " |