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 */