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

Squeeze blank lines by default for -m output #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thinkerbot
Copy link

A limited, informal survey of the default pager for man indicates that squeezing blank lines is typical. The result is a tidier output.

Surveyed:

This addresses issue #63.

A limited, informal survey of the default pager for man indicates that
squeezing blank lines is typical.  The result is a tidier output.

Surveyed:
* Ubuntu (http://manpages.ubuntu.com/manpages/precise/en/man1/man.1.html)
  pager -s
* OSX (https://developer.apple.com/library/mac/#documentation/darwin/reference/manpages/man1/man.1.html#//apple_ref/doc/man/1/man)
  less -is
* "Linux" (http://linux.about.com/od/commands/l/blcmdl1_man.htm)
  /usr/bin/less -isr
@thinkerbot
Copy link
Author

Note that given the pager is so variable (and the groff options, I bet) I think that generating a tmp file and using man itself would give the best user experience. That way the user would see exactly what they will see if/when they install the manpage on their system.

I looked into bin/ronn to see what that would take. Doesn't seem terribly hard.

@apjanke
Copy link

apjanke commented Dec 25, 2018

Looks like Ronn development is defunct. But I've made a Ronn-NG fork and done this over there, if you're still interested.

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

Successfully merging this pull request may close these issues.

2 participants