-
Notifications
You must be signed in to change notification settings - Fork 84
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
huge blank space around code block in man page #63
Comments
I looked into this a bit. Turns out lots of manpages have extra blank lines in them but we usually don't see them because the default pager for
The last line of output (at least on my machine) is the command that man executes to view the curl man page. For me it's this:
If you run that command then you get the same output as So I opened pull request #66 to fix this issue. As a workaround, set the PAGER environment variable:
Note that since |
I think the correct way to format code blocks would be something like this:
where <line 1>, ..., are the lines of the code block. This sets each line in a constant-width font and does not generate superfluous empty lines around the block. |
I think tinkerbot's analysis is correct: the extra lines are added by So the fix needs to be handled at the pager level, by modifying the default pager command. (And, as a user, making sure you don't have your Looks like Ronn development is defunct. But I've made a Ronn-NG fork and addressed this issue over there, if you're still interested. |
when using ronn to get a man page, ronn produce a man page with at least 2 or 3 blank lines around code block
No more than one blank lines is necessary
It seems ronn insert in the man page redondant information like .IP "" 0 followed by a .P which is basically the same.
and other blank line with .
The text was updated successfully, but these errors were encountered: