[glib/ebassi/issue-2601: 4/4] codegen: Add missing closing angular bracket
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/ebassi/issue-2601: 4/4] codegen: Add missing closing angular bracket
- Date: Tue, 15 Feb 2022 11:53:14 +0000 (UTC)
commit 17f38affa210ec0f91d80a6776de9decf4502673
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue Feb 15 11:51:11 2022 +0000
codegen: Add missing closing angular bracket
We are matching `<parameter>` as well as `<para>`, and we
end up with broken XML in case the (expanded) description
starts with `<parameter>`.
Fixes: #2601
gio/gdbus-2.0/codegen/codegen_docbook.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gdbus-2.0/codegen/codegen_docbook.py b/gio/gdbus-2.0/codegen/codegen_docbook.py
index 1bfcadd4b..b7280e306 100644
--- a/gio/gdbus-2.0/codegen/codegen_docbook.py
+++ b/gio/gdbus-2.0/codegen/codegen_docbook.py
@@ -342,7 +342,7 @@ class DocbookCodeGenerator:
def expand_paras(self, s, expandParamsAndConstants):
s = self.expand(s, expandParamsAndConstants).strip()
res = []
- if not s.startswith("<para"):
+ if not s.startswith("<para>"):
res.append("<para>")
for line in s.split("\n"):
line = line.strip()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]