Description: Make doxygen2man handle parameter names wrapped in references
 Doxygen 1.15 emits parameter names as <ref> elements, while newer
 versions emit plain text. The old extraction code only looked at the
 immediate node content, so it dropped such parameters and, in turn,
 generated man pages whose contents depended on the doxygen version.
Author: Valentin Vidic <vvidic@debian.org>
Bug-Debian: https://bugs.debian.org/1153197
Last-Update: 2026-11-08

--- libqb-2.0.10.orig/doxygen2man/doxygen2man.c
+++ libqb-2.0.10/doxygen2man/doxygen2man.c
@@ -192,9 +192,10 @@ static void get_param_info(xmlNode *cur_
 	/* This is not robust, and very inflexible */
 	for (this_tag = cur_node->children; this_tag; this_tag = this_tag->next) {
 		for (sub_tag = this_tag->children; sub_tag; sub_tag = sub_tag->next) {
-			if (sub_tag->type == XML_ELEMENT_NODE && strcmp((char *)sub_tag->name, "parameternamelist") == 0 &&
-				sub_tag->children->next->children) {
-				paramname = (char*)sub_tag->children->next->children->content;
+			if (sub_tag->type == XML_ELEMENT_NODE && strcmp((char *)sub_tag->name, "parameternamelist") == 0) {
+				cstring_t paramname_c = get_child(sub_tag, "parametername");
+				paramname = cstring_to_chars(paramname_c);
+				cstring_free(paramname_c);
 			}
 			if (sub_tag->type == XML_ELEMENT_NODE &&
 			    strcmp((char *)sub_tag->name, "parameterdescription") == 0 &&
