Skip to content

Commit

Permalink
Better flow for block tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
danfuzz committed Mar 29, 2024
1 parent 3c3470f commit ae1f128
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/lib/bashy-node/node-project/reflow-jsdoc
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,14 @@ function calcIndent(firstIndent, _locals_, result) {
result = firstIndent;
match(result, /^ *[*] /);
result = substr(result, RSTART, RLENGTH);
while (length(result) < length(firstIndent)) result = result " ";
if (index(firstIndent, "@") != 0) {
# We have a block tag. Just drop the tag-per-se and make follow-on lines
# have two-space indents.
result = result " ";
} else {
while (length(result) < length(firstIndent)) result = result " ";
}
return result;
}
Expand Down

0 comments on commit ae1f128

Please sign in to comment.