Description
This issue was initially opened by @rok here: pydata/pydata-sphinx-theme#388.
When I want to copy a name of a function parameter I typically double-click it to select. Normally that would select the entire parameter and I can now copy and paste it elsewhere.
Here however there seems to be a css or js setting that causes the double click to select the parameter type as well. When I copy it the name of parameter is concatenated to type string without space in between. E.g. double clicking and copy-pasting parameter data from here will result in a string datastructured. Ideally it would result only in data.
After some digging and some help from SO, I think I identified the issue. The problem comes from the structure of the dt line. if everything is written without spaces and without line break it behave as described in the issue:
<dt>
<strong>data</strong><span class="classifier">structured ndarray, sequence of tuples or dicts, or DataFrame</span>
</dt>
if on the other hand you add an extra space you are good to go
<dt>
<strong>data</strong> <span class="classifier">structured ndarray, sequence of tuples or dicts, or DataFrame</span>
</dt>
If you can point me to where this html is generated, I would be happy to make a PR
PS: see this copen to have a demo of the different behaviours: https://codepen.io/12rambau/pen/mdXQayr