Fix parameter list generation in build/gen_stub.php (#16764)

[ci skip]

<variablelist> is not valid within <simpara>, this should not be wrapped
at all in a paragraph.
Regressed in 32789c0047.
This commit is contained in:
Niels Dossche 2024-11-12 19:31:00 +01:00 committed by GitHub
parent a087442259
commit 7202d119cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1813,12 +1813,11 @@ ENDCOMMENT
$parametersRefSec->appendChild($noParamEntity);
return $parametersRefSec;
} else {
$parametersPara = $doc->createElement('simpara');
$parametersRefSec->appendChild($parametersPara);
$parametersContainer = $doc->createDocumentFragment();
$parametersPara->appendChild(new DOMText("\n "));
$parametersContainer->appendChild(new DOMText("\n "));
$parametersList = $doc->createElement('variablelist');
$parametersPara->appendChild($parametersList);
$parametersContainer->appendChild($parametersList);
/*
<varlistentry>
@ -1863,7 +1862,8 @@ ENDCOMMENT
}
$parametersList->appendChild(new DOMText("\n "));
}
$parametersPara->appendChild(new DOMText("\n "));
$parametersContainer->appendChild(new DOMText("\n "));
$parametersRefSec->appendChild($parametersContainer);
$parametersRefSec->appendChild(new DOMText("\n "));
return $parametersRefSec;
}