From 7202d119cd1889bcbbe6280c3e2fb757499b71d3 Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Tue, 12 Nov 2024 19:31:00 +0100 Subject: [PATCH] Fix parameter list generation in build/gen_stub.php (#16764) [ci skip] is not valid within , this should not be wrapped at all in a paragraph. Regressed in 32789c00476e185daf4a24e82694164295a3b31f. --- build/gen_stub.php | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/build/gen_stub.php b/build/gen_stub.php index 8adf4faa408..c32f53678d1 100755 --- a/build/gen_stub.php +++ b/build/gen_stub.php @@ -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); /* @@ -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; }