mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 09:46:17 +01:00
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
This commit is contained in:
parent
6ddf760507
commit
17f38affa2
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user