Skip to content

README suggests suboptimal MANPAGER config #667

@qstrahl

Description

@qstrahl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions