From a68909aa5b4b4243b3dadcc3fb9ee00c4b1b8327 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Sat, 17 Sep 2022 18:09:02 +0200 Subject: [PATCH] CSS: Avoid line breaks in (empty) prompts --- src/nbsphinx.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nbsphinx.py b/src/nbsphinx.py index 2560241b..a771b203 100644 --- a/src/nbsphinx.py +++ b/src/nbsphinx.py @@ -595,10 +595,11 @@ } } -/* disable scrollbars on prompts */ +/* disable scrollbars and line breaks on prompts */ div.nbinput.container div.prompt pre, div.nboutput.container div.prompt pre { overflow: hidden; + white-space: pre; } /* input/output area */