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>
@ -1837,33 +1836,34 @@ ENDCOMMENT
$listItemPara = $doc->createElement('simpara');
$listItemPara->append(
"\n ",
"Description.",
"\n ",
"Description.",
"\n ",
);
$parameterEntryListItem = $doc->createElement('listitem');
$parameterEntryListItem->append(
"\n ",
$listItemPara,
"\n ",
$listItemPara,
"\n ",
);
$parameterEntry = $doc->createElement('varlistentry');
$parameterEntry->append(
"\n ",
$parameterTerm,
"\n ",
$parameterEntryListItem,
"\n ",
$parameterTerm,
"\n ",
$parameterEntryListItem,
"\n ",
);
$parametersList->appendChild(new DOMText("\n "));
$parametersList->appendChild(new DOMText("\n "));
$parametersList->appendChild($parameterEntry);
}
$parametersList->appendChild(new DOMText("\n "));
$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;
}