Skip to content

Commit

Permalink
Fix duplicated field term colons for Docutils 0.18+ (#10595)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
  • Loading branch information
jfbu and AA-Turner committed Jun 25, 2022
1 parent 949984c commit 4b48233
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES
Expand Up @@ -16,6 +16,8 @@ Features added
Bugs fixed
----------

* #10594: HTML Theme: field term colons are doubled if using Docutils 0.18+

Testing
--------

Expand Down
2 changes: 2 additions & 0 deletions sphinx/themes/basic/static/basic.css_t
Expand Up @@ -686,9 +686,11 @@ dl.field-list > dt {
padding-right: 5px;
}

{%- if docutils_version_info[:2] < (0, 18) %}
dl.field-list > dt:after {
content: ":";
}
{% endif %}

dl.field-list > dd {
padding-left: 0.5em;
Expand Down

0 comments on commit 4b48233

Please sign in to comment.