authorgravatar for der.teufel.mail@gmail.comKrzysztof Wolicki <der.teufel.mail@gmail.com> 2023-02-10 14:31:26+01:00
committergravatar for der.teufel.mail@gmail.comKrzysztof Wolicki <der.teufel.mail@gmail.com> 2023-02-10 14:32:45+01:00
log14bf20daeb784fb65e7d5789af13694a272a7142
treed45ef5c52165b37989462909ae65217ddf60efca
parent02bc6356d72f34fdf4c0669bbcad20427f4d8991

autodoc: anonymous struct type indentation fix


2 files changed, 3 insertions(+), 3 deletions(-)

lib/docs/main.js+2-2
......@@ -1789,7 +1789,7 @@ const NAV_MODES = {
17891789 if (structObj.fields.length > 1 && opts.wantHtml) {
17901790 indent = "&nbsp;&nbsp;&nbsp;&nbsp;"
17911791 }
1792 if (opts.indent) {
1792 if (opts.indent && structObj.fields.length > 1) {
17931793 indent = opts.indent + indent;
17941794 }
17951795 let structNode = getAstNode(structObj.src);
......@@ -1819,7 +1819,7 @@ const NAV_MODES = {
18191819
18201820 name += html;
18211821 }
1822 if (opts.indent) {
1822 if (opts.indent && structObj.fields.length > 1) {
18231823 name += opts.indent;
18241824 }
18251825 name += "}";
src/Autodoc.zig+1-1
......@@ -3628,7 +3628,7 @@ fn tryResolveRefPath(
36283628 }
36293629
36303630 if (self.pending_ref_paths.get(&path[path.len - 1])) |waiter_list| {
3631 // It's important to de-register oureslves as pending before
3631 // It's important to de-register ourselves as pending before
36323632 // attempting to resolve any other decl.
36333633 _ = self.pending_ref_paths.remove(&path[path.len - 1]);
36343634