Skip to content

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