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

Do not break lines within :option: references #9909

Closed
marxin opened this issue Nov 29, 2021 · 3 comments · Fixed by #9929
Closed

Do not break lines within :option: references #9909

marxin opened this issue Nov 29, 2021 · 3 comments · Fixed by #9929
Labels
html theme type:enhancement enhance or introduce a new feature
Milestone

Comments

@marxin
Copy link
Contributor

marxin commented Nov 29, 2021

Something one needs to do a listing of options and the line breaks does not look good.

Screenshot from 2021-11-29 10-44-59

Is it possible to mark the :option: references as non-breaking?

@marxin marxin added the type:enhancement enhance or introduce a new feature label Nov 29, 2021
@marxin
Copy link
Contributor Author

marxin commented Dec 1, 2021

Note I'm using RTD theme so I'm not sure what's the correct place for reporting the issue.
Solution can be as simple as white-space: nowrap for .literal ?

@astrojuanlu
Copy link
Contributor

If it happens with other themes, the issue could be raised against the HTML generated by Sphinx. But probably dealing with this in the theme would be more appropriate. Although some custom css fixes the issue, I assume?

@marxin
Copy link
Contributor Author

marxin commented Dec 1, 2021

Yep. The following helps:

.literal {
  white-space: nowrap !important;
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
html theme type:enhancement enhance or introduce a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants