Open kidbrax opened 3 years ago
Hi again @kidbrax,
Thanks for pointing this out! I was able to reproduce this. It seems less
has trouble with the table output listed for "General Options" here. I'm not seeing this issue in Powershell, but I haven't tested any other shells to see if other pagers are affected by this. Marking as a bug for now.
I think there's an open PR that would resolve this:
https://github.com/aws/aws-cli/pull/4855
We would need to check all the places we use tables and make sure that this addresses, as well as that it doesn't have any effect on other content.
Alternatively, we could forego a table here and reformat it into an enumerated list. What do you think about the readability in that case? Something like:
The AWS CLI has a few general options:
profile
--profile
AWS_PROFILE
Hi @kdaily I did your suggestion. What do you think ?
Can't reproduce in iTerm2:
Can't reproduce in Terminal.app
Version:
$ aws --version
aws-cli/2.13.3 Python/3.11.4 Darwin/22.5.0 exe/x86_64 prompt/off
@debora-ito was able to reproduce the issue and gave us a bit of a hint: It's groff
.
I installed groff and lo and behold:
Something throws an error during render:
<string>:450: (ERROR/3) Unknown interpreted text role "doc".
This transiently shows up after I install groff, but then sticks around after I remove groff. Edit: nevermind, I checked an old terminal window that I used to check and sure enough, it's there before I installed groff, so that's a bug somewhere else. I'm going to guess that's a leftover from our doc building process seeping out of the seams somewhere.
@indrora it seems that <string>:450: (ERROR/3) Unknown interpreted text role "doc".
error is due to this line https://github.com/aws/aws-cli/blob/3477bdbb546d73a96e79cfa474cd2dbc7b3b225d/awscli/topics/config-vars.rst?plain=1#L507
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug when running
aws help config-vars
, the output of the GENERAL OPTIONS section is not formatted correctlyIt looks like this:
SDK version number
Platform/OS/Hardware/Device
MacOS and ZSH
To Reproduce (observed behavior)
just type
aws help config-vars
and look at the output