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

Bug #1713052 reported by Doug Hellmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstackdocstheme
In Progress
Undecided
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)
Changed in openstack-doc-tools:
assignee: nobody → binoy m v (binoy.v)
Revision history for this message
binoy m v (binoy.v) wrote :

This error can be solved by adding padding-right: unset in the following file
https://docs.openstack.org/oslo.policy/latest/_static/css/bootstrap.min.css

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
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.