-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Man pages: fix broken tables #18678
Man pages: fix broken tables #18678
Conversation
61bd3ac
to
0056eca
Compare
This is what the script output looks like on
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: edsantiago, vrothberg The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Is this bug reported somewhere? I think it would make sense to fix it in go-md2man. |
I don't know if it's a known bug; it's on my low-priority TODO list to check and report it. |
Drafting again, to let #18671 go first |
0056eca
to
675de8d
Compare
LGTM. It would be nice to fix md2man, but for now this is good. Update the PR and we can get this in. |
Work around a go-md2man bug, and add a check script to make sure this doesn't hit us again. Background: go-md2man can't deal with a left-hand column > 31 chars. It produces man pages that look like: | Something With >31 Character | | | | ..description | (should be all on one row). It also has trouble when the vertical bars are misaligned: it completely removes the right-hand side. There's almost certainly a better solution: fix go-md2man, or use a different conversion tool, or maybe even pre/postprocess. But this is a quick interim solution. Sorry for the perl. This could be done in bash/sed/awk/grep, but not with any sort of sane error messages. Signed-off-by: Ed Santiago <[email protected]>
675de8d
to
dfba6dd
Compare
Update: |
LGTM |
/lgtm |
go-md2man is fragile, especially around tables (containers#18678, containers#19278). Podman man pages are finely tuned to look OK using v2.02, which is what we vendor in test/tools, so we should really use it instead of whatever is installed on the system. This fixes 'make docs' on RHEL8, broken as of containers#19278. Signed-off-by: Ed Santiago <[email protected]>
Work around a go-md2man bug, and add a check script to make sure
this doesn't hit us again.
Background: go-md2man can't deal with a left-hand column > 31 chars.
It produces man pages that look like:
(should be all on one row). It also has trouble when the vertical
bars are misaligned: it completely removes the right-hand side.
There's almost certainly a better solution: fix go-md2man, or
use a different conversion tool, or maybe even pre/postprocess.
But this is a quick interim solution.
Sorry for the perl. This could be done in bash/sed/awk/grep,
but not with any sort of sane error messages.
Signed-off-by: Ed Santiago [email protected]