-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indented function descriptions are not parsed #50
Comments
landure
added a commit
to landure/shdoc
that referenced
this issue
Nov 12, 2022
- Add common code for multiline support for: description, example, stdout, stderr, stdin, set, see, and exitcode.
landure
added a commit
to landure/shdoc
that referenced
this issue
Aug 19, 2023
- Add common code for multiline support for: description, example, stdout, stderr, stdin, set, see, and exitcode.
landure
added a commit
to landure/shdoc
that referenced
this issue
Aug 19, 2023
- Add common code for multiline support for: description, example, stdout, stderr, stdin, set, see, and exitcode. - `li-preprocess` style adds indentation to multiple line list entries. - replace space by generic `[[:blank:]]` in `exitcode` style `from` regex.
jbrubake
pushed a commit
to jbrubake/shdoc
that referenced
this issue
Oct 10, 2024
- Add common code for multiline support for: description, example, stdout, stderr, stdin, set, see, and exitcode. - `li-preprocess` style adds indentation to multiple line list entries. - replace space by generic `[[:blank:]]` in `exitcode` style `from` regex.
jbrubake
pushed a commit
to jbrubake/shdoc
that referenced
this issue
Oct 11, 2024
- Add common code for multiline support for: description, example, stdout, stderr, stdin, set, see, and exitcode. - `li-preprocess` style adds indentation to multiple line list entries. - replace space by generic `[[:blank:]]` in `exitcode` style `from` regex.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given the following test file:
I would expect similar documentation output for both
testme
andtestus
- however, I gettestus
missing its description (but it does include the examples). I can't quite see why this is happening myself, but I'm not familiar withgawk
.Here is the output with debug mode enabled: using:
[note: I did change the backslashes in the outputted code samples to be single quote marks to avoid Github handling it as formatting]
Platform
Docker: debian:bullseye
GNU Awk version: 5.1.0 API: 3.0
shdoc commit version 433a0ba (6th April)
(And before anyone asks, no that is not real in use code, but I've just reduced it down to a test case - there is a reason I've got a function within an
if
statement and it is formatted by shfmt, checked by shellcheck and runs on in my Bash 5 environment - so I think it's valid code ;) )( How did I miss #21 ? )
The text was updated successfully, but these errors were encountered: