mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-19 23:28:54 +02: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:
@@ -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()
|
||||||
|
Reference in New Issue
Block a user