From aabf772722b2c070d365e6a8e4263b9a30635e6f Mon Sep 17 00:00:00 2001 From: Jakob Lykke Andersen Date: Thu, 2 Dec 2021 17:46:56 +0100 Subject: [PATCH] Prevent literal line wrapping --- CHANGES | 1 + sphinx/themes/basic/static/basic.css_t | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES b/CHANGES index 0a465a5f212..25fdd960ca0 100644 --- a/CHANGES +++ b/CHANGES @@ -33,6 +33,7 @@ Bugs fixed with Python 3.10 * #9878: mathjax: MathJax configuration is placed after loading MathJax itself * #9857: Generated RFC links use outdated base url +* #9909: HTML, prevent line-wrapping in literal text. Testing -------- diff --git a/sphinx/themes/basic/static/basic.css_t b/sphinx/themes/basic/static/basic.css_t index 43e04bd3411..2dff556b452 100644 --- a/sphinx/themes/basic/static/basic.css_t +++ b/sphinx/themes/basic/static/basic.css_t @@ -757,6 +757,7 @@ span.pre { -ms-hyphens: none; -webkit-hyphens: none; hyphens: none; + white-space: nowrap; } div[class*="highlight-"] {