From 946aeb9a3a4b95cf983cac37ca944705c5218fef Mon Sep 17 00:00:00 2001 From: jfbu <2589111+jfbu@users.noreply.github.com> Date: Sat, 25 Jun 2022 10:24:03 +0200 Subject: [PATCH] Fix #10594: HTML: field term colons are doubled if using Docutils 0.18+ --- CHANGES | 2 ++ sphinx/themes/basic/static/basic.css_t | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGES b/CHANGES index 4afa807b69e..84a8b9d0a02 100644 --- a/CHANGES +++ b/CHANGES @@ -16,6 +16,8 @@ Features added Bugs fixed ---------- +#10594: HTML: field term colons are doubled if using Docutils 0.18+ + Testing -------- diff --git a/sphinx/themes/basic/static/basic.css_t b/sphinx/themes/basic/static/basic.css_t index d8f3fe74626..e488dbcb1ce 100644 --- a/sphinx/themes/basic/static/basic.css_t +++ b/sphinx/themes/basic/static/basic.css_t @@ -686,6 +686,12 @@ dl.field-list > dt { padding-right: 5px; } +/* Compatibility patch for Docutils 0.18+ */ +dl.field-list > dt .colon { + display: none; +} + +/* Docutils 0.17 and older */ dl.field-list > dt:after { content: ":"; }