mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-09 12:25:48 +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):
|
def expand_paras(self, s, expandParamsAndConstants):
|
||||||
s = self.expand(s, expandParamsAndConstants).strip()
|
s = self.expand(s, expandParamsAndConstants).strip()
|
||||||
res = []
|
res = []
|
||||||
if not s.startswith("<para"):
|
if not s.startswith("<para>"):
|
||||||
res.append("<para>")
|
res.append("<para>")
|
||||||
for line in s.split("\n"):
|
for line in s.split("\n"):
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user