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

Extra spaces around code blocks #13

Closed
apjanke opened this issue Dec 25, 2018 · 2 comments
Closed

Extra spaces around code blocks #13

apjanke opened this issue Dec 25, 2018 · 2 comments

Comments

@apjanke
Copy link
Owner

apjanke commented Dec 25, 2018

Code blocks interspersed with text render with too many blank lines surrounding the code block.

Legacy bug report: rtomayko/ronn#63

For example, this:

screen shot 2018-12-24 at 9 32 16 pm

Renders as this:

screen shot 2018-12-24 at 9 32 33 pm

@apjanke
Copy link
Owner Author

apjanke commented Dec 25, 2018

I modified the code to make the output more compact and strip extra leading newlines from <pre> output, but that didn't fix it. Looks like these extra blank lines are being added at the nroff stage of the pipeline, downstream from the ROFF text, so this needs to be handled at the pager level.

Ronn is defaulting to use plain more as its pager. But modern Unix systems seem to use more -is as their default pager for man. (See man man.) That -s option is for condensing consecutive blank lines.

I've modified the default pager to be more -is: f528c25. That fixes up the output.

If you're still seeing these extra lines, check your $PAGER and $MANPAGER environment variables to make sure they're not set to something that lacks the -s option.

@apjanke
Copy link
Owner Author

apjanke commented Dec 25, 2018

I think that's all we can do about this. Closing.

@apjanke apjanke closed this as completed Dec 25, 2018
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

No branches or pull requests

1 participant