horizontal padding around code elements introduces extra whitespace in autogenerated library docs

Bug #1713052 reported by Doug Hellmann on 2017-08-25
This bug affects 1 person
Affects Status Importance Assigned to Milestone
binoy m v

Bug Description

The padding setting for <code> elements introduces space in the middle of fully qualified class names so that "oslo_policy.policy.DocumentedRuleDefault" appears as "oslo_policy.policy. DocumentedRuleDefault".

See https://docs.openstack.org/oslo.policy/latest/reference/api/oslo_policy.policy.html for examples.

tags: added: openstackdocstheme
binoy m v (binoy.v) on 2017-12-05
Changed in openstack-doc-tools:
assignee: nobody → binoy m v (binoy.v)
binoy m v (binoy.v) wrote :

This error can be solved by adding padding-right: unset in the following file

code {
    padding: 2px 4px;
    font-size: 90%;
    color: #c7254e;
    background-color: #f9f2f4;
    border-radius: 4px;
    padding-right: unset;

Changed in openstack-doc-tools:
status: New → In Progress
Doug Hellmann (doug-hellmann) wrote :

Does that completely remove the padding from the right side of all code elements? Are there any situations where we want to keep that padding? Maybe in cases where we just have a bit of code inlined in a sentence, for example? Is there some way to more specifically identify code elements in the auto-generated documentation where the layout problem exists?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers