Fix duplicated field term colons for Docutils 0.18+ (#10595)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
Jean-François B 2022-06-25 21:10:34 +02:00 committed by GitHub
parent 949984c4e2
commit 4b482334a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,8 @@ Features added
Bugs fixed Bugs fixed
---------- ----------
* #10594: HTML Theme: field term colons are doubled if using Docutils 0.18+
Testing Testing
-------- --------

View File

@ -686,9 +686,11 @@ dl.field-list > dt {
padding-right: 5px; padding-right: 5px;
} }
{%- if docutils_version_info[:2] < (0, 18) %}
dl.field-list > dt:after { dl.field-list > dt:after {
content: ":"; content: ":";
} }
{% endif %}
dl.field-list > dd { dl.field-list > dd {
padding-left: 0.5em; padding-left: 0.5em;