Skip to content

Remove extra blank lines around [docs] links - #14801

Open
giampaolo wants to merge 2 commits into
sphinx-doc:masterfrom
giampaolo:viewcode-blank-lines
Open

giampaolo wants to merge 2 commits into
sphinx-doc:masterfrom
giampaolo:viewcode-blank-lines

Conversation

@giampaolo

Copy link
Copy Markdown

Hi! This bothered me for a while, so I decided to just fix it upstream.
Before:

image

After:

image
@jdillard jdillard added the extensions:viewcode The `sphinx.ext.linkcode` or `sphinx.ext.viewcode` extensions label Oct 29, 2026

@jdillard jdillard left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. The extra line breaks come from viewcode’s generated markup, not the original Python source, so removing them makes the rendered source view more closely match the original file. Thanks!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions:viewcode The `sphinx.ext.linkcode` or `sphinx.ext.viewcode` extensions

2 participants