reconquest/shdoc

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

Opened this issue · 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++) {

This should be fixed by commit be091b9.