requests
requests copied to clipboard
docs(socks): same block as other sections
strange formatting: https://docs.python-requests.org/en/latest/user/advanced/#socks
The current formatting looks correct to me. What looks wrong to you?
i have some kind of strange underscore
In a private firefox without dark theme
https://github.com/psf/requests/blob/main/docs/user/advanced.rst
In the rst preview you can see that this bash code block is not the same as the other bash code bloc
I cannot replicate that on Firefox on macOS or Linux
I cannot replicate that on Firefox on macOS or Linux.
I would be willing to entertain a PR, however that adds sphinx-prompt to our docs dependencies and switches this to using .. prompt::
instead because that's more correct
I am actually able to replicate this on macOS in Firefox 115.3.1esr (64-bit). It appears whitespace in these blocks are being replaced with span
tags with the w
CSS class from pygments. This adds a faint white (#f8f8f8) underline to each whitespace.
I don't however immediately see why this is being added specifically for the bash codeblock. I'm fine moving to the simplified syntax (::
) (or .. prompt::
as Ian noted) in this case since the bash formatting doesn't materially change the output, but it would be interesting to understand why it's happening.
To find out why it's happening I suspect we'll need a pygments bug to investigate.
The span doesn't change what you copy out of the text though