From: Corentin Noël Date: Fri, 2 May 2025 21:42:30 +0000 (+0200) Subject: libvaladoc: Do not error-out on doc:format X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6054231d4e756a8184bf7cbd11125b1d9b608582;p=thirdparty%2Fvala.git libvaladoc: Do not error-out on doc:format This is part of the valid .gir file format, just skip it for now. --- diff --git a/libvaladoc/importer/girdocumentationimporter.vala b/libvaladoc/importer/girdocumentationimporter.vala index 057ab499b..7a3f1574c 100644 --- a/libvaladoc/importer/girdocumentationimporter.vala +++ b/libvaladoc/importer/girdocumentationimporter.vala @@ -217,6 +217,8 @@ public class Valadoc.Importer.GirDocumentationImporter : DocumentationImporter { parse_package (); } else if (reader.name == "c:include") { parse_c_include (); + } else if (reader.name == "doc:format") { + parse_doc_format (); } else { // error error ("unknown child element `%s' in `repository'".printf (reader.name)); @@ -247,6 +249,13 @@ public class Valadoc.Importer.GirDocumentationImporter : DocumentationImporter { end_element ("c:include"); } + private void parse_doc_format () { + start_element ("doc:format"); + next (); + + end_element ("doc:format"); + } + private void skip_element () { next ();