shdoc icon indicating copy to clipboard operation
shdoc copied to clipboard

wrong argument ordering and numbering when the number of argument >= 4

Open bernardjannes opened this issue 4 years ago • 1 comments

For the function block

  1. when you have 4 @arg or more, the generated markdown becomes unordered
  2. when you have 10 @arg or more, the generated markdown does no more apply the bold pattern

To correct this:

line 26, replace: styles["github", "argN", "from"] = "^(\$[0-9]) (\S+)" by: styles["github", "argN", "from"] = "^(\$[0-9]+) (\S+)"

line 203, replace: for (i in docblock["arg"]) { by: for (i =1; i <= length(docblock["arg"]); i++) {

bernardjannes avatar Oct 12 '21 13:10 bernardjannes

This should be fixed by commit be091b9481b013076b02cd8f6af52aec5ec96a4b.

landure avatar Nov 09 '22 19:11 landure