From 5819ec03e07ef0837e99d6ae883ce3c8f416d41a 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 */