Skip to content
Discussion options

You must be logged in to vote

The decisive test is --paging=never plus a byte-level look. plain itself adds no margin - if the space disappears below, it comes from the pager, not bat:

bat --no-config --style=plain --color=never --paging=never file.py | cat -A | head

If lines start immediately with no leading space before the $ line-end markers, bat is clean and the column is added downstream. The classic culprit is less -J / --status-column, which reserves a left column and can sneak in via LESS, BAT_PAGER, or PAGER independently of bat's style. Check with:

echo "LESS=$LESS BAT_PAGER=$BAT_PAGER PAGER=$PAGER"
LESS= bat --no-config --style=plain --color=always --paging=always --pager='less -R' file.py

If the space surv…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ChuckFoo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants