Merge pull request #14263 from der-teufel-programming/master

autodoc: Fix function pointers rendering issue
This commit is contained in:
Loris Cro 2023-01-11 17:33:09 +01:00 committed by GitHub
commit a88679453a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1933,8 +1933,10 @@ var zigAnalysis;
payloadHtml += ", "; payloadHtml += ", ";
} }
payloadHtml += if (opts.wantHtml) {
"<span class='argBreaker'><br>&nbsp;&nbsp;&nbsp;&nbsp;</span>"; payloadHtml +=
"<span class='argBreaker'><br>&nbsp;&nbsp;&nbsp;&nbsp;</span>";
}
let value = fnObj.params[i]; let value = fnObj.params[i];
let paramValue = resolveValue({ expr: value }); let paramValue = resolveValue({ expr: value });
@ -2007,7 +2009,9 @@ var zigAnalysis;
} }
} }
payloadHtml += "<span class='argBreaker'>,<br></span>"; if (opts.wantHtml) {
payloadHtml += "<span class='argBreaker'>,<br></span>";
}
payloadHtml += ") "; payloadHtml += ") ";
if (fnObj.has_align) { if (fnObj.has_align) {
@ -2078,7 +2082,7 @@ var zigAnalysis;
) { ) {
name = "std"; name = "std";
} else { } else {
name = exprName({ type: typeObj }, false, false); name = exprName({ type: typeObj }, {wantHtml: false, wantLink: false});
} }
if (name != null && name != "") { if (name != null && name != "") {
domHdrName.innerText = domHdrName.innerText =