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

Inconsistent spaces in C++ function definitions with links #647

Closed
ZedThree opened this issue May 29, 2018 · 4 comments
Closed

Inconsistent spaces in C++ function definitions with links #647

ZedThree opened this issue May 29, 2018 · 4 comments

Comments

@ZedThree
Copy link

Problem

There is some missing whitespace in function definitions that contain links, at least in the cpp domain. Consider the following restructuredtext documenting some C++ type and function:

.. default-domain:: cpp

.. cpp:type:: MyType

   Some type

.. cpp:function:: const MyType Foo(const MyType bar)

   Some function type thing

I get the following:
bad_rtd_theme

with spaces missing after MyType.

Expected Results

Something like this:
good_rtd_theme
Note the spaces around MyType link in the definition of Foo.

I did this by changing the following with the Inspect tool in Chrome:

  .rst-content dl:not(.docutils) dt {
-      display: table;
+      display: table-cell;
   ...

which I think comes from here

Note that now there is extra padding to the right of const, but not type, which I couldn't fix just by deleting padding-right: 8px; on .rst-content dl:not(.docutils) .property

Environment Info

  • Python Version: 3.6.5
  • Sphinx Version: 1.7.5
  • RTD Theme Version: 0.3.1

Also with the defaults on rtd

@binaryzebra
Copy link

2019-01-25 23 46 15

2019-01-25 23 46 07

Same problem.

@lgritz
Copy link

lgritz commented May 30, 2019

I'm experiencing this, too. Is anybody working on a fix?

@agjohnson
Copy link
Collaborator

@lgritz there are currently no PRs addressing this issue, no

@stsewd
Copy link
Member

stsewd commented Oct 8, 2020

Closing as duplicate of #694

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

5 participants