From ae1f128daaa65a83a67b75f9fdff271d3bed01cc Mon Sep 17 00:00:00 2001 From: Dan Bornstein Date: Thu, 28 Mar 2024 17:31:42 -0700 Subject: [PATCH] Better flow for block tags. --- scripts/lib/bashy-node/node-project/reflow-jsdoc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/lib/bashy-node/node-project/reflow-jsdoc b/scripts/lib/bashy-node/node-project/reflow-jsdoc index 9992490..d20438c 100755 --- a/scripts/lib/bashy-node/node-project/reflow-jsdoc +++ b/scripts/lib/bashy-node/node-project/reflow-jsdoc @@ -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; }