mirror of
https://github.com/ziglang/zig.git
synced 2025-01-09 03:32:48 +00:00
Merge pull request #14263 from der-teufel-programming/master
autodoc: Fix function pointers rendering issue
This commit is contained in:
commit
a88679453a
@ -1933,8 +1933,10 @@ var zigAnalysis;
|
|||||||
payloadHtml += ", ";
|
payloadHtml += ", ";
|
||||||
}
|
}
|
||||||
|
|
||||||
payloadHtml +=
|
if (opts.wantHtml) {
|
||||||
"<span class='argBreaker'><br> </span>";
|
payloadHtml +=
|
||||||
|
"<span class='argBreaker'><br> </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 =
|
||||||
|
Loading…
Reference in New Issue
Block a user