Skip to content
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

README suggests suboptimal MANPAGER config #667

Closed
qstrahl opened this issue Sep 20, 2019 · 1 comment
Closed

README suggests suboptimal MANPAGER config #667

qstrahl opened this issue Sep 20, 2019 · 1 comment

Comments

@qstrahl
Copy link

qstrahl commented Sep 20, 2019

Hello! Thank you for the lovely software.

I noticed that when setting MANPAGER="sh -c 'col -b | bat -l man'" as recommended by the README, there were some minor formatting issues - I'm still investigating possible solutions to most of them, but one of them at least has a very simple solution, which is to pass the -x switch to col (in addition to the recommended -b).

I found that the default behaviour of col was to take some dubious artistic liberties with whitespace, particularly noticeable in the very first and last lines of most (all?) man pages, the header and footer. The -x switch tells col to output multiple spaces instead of tab characters, which ameliorated the alignment issues for me.

@sharkdp
Copy link
Owner

sharkdp commented Sep 21, 2019

Thank you for reporting this. This is a duplicate of (or related to) #652. I should have already updated the README with the col -bx part (did that now in 4102175).

If you find more things which should be corrected, please feel free to open a new ticket or comment here. Thanks!

@sharkdp sharkdp closed this as completed Sep 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants