From a852c75dd73c70e184db978664757b3e97ac4bbc Mon Sep 17 00:00:00 2001 From: Fernando Perez Date: Mon, 31 Oct 2011 21:39:17 -0700 Subject: [PATCH] Word-wrap output correctly in the notebook; prevents excessive scrolling. Firefox seems to not honor it correctly, but Webkit browsers (Chrome, rekonq, Safari) do. --- IPython/frontend/html/notebook/static/css/notebook.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/IPython/frontend/html/notebook/static/css/notebook.css b/IPython/frontend/html/notebook/static/css/notebook.css index a1d965e8b..04ac2adcd 100644 --- a/IPython/frontend/html/notebook/static/css/notebook.css +++ b/IPython/frontend/html/notebook/static/css/notebook.css @@ -351,3 +351,8 @@ div.text_cell_render { .shortcut_descr { } + +/* Word-wrap output correctly. This is the CSS3 spelling, though Firefox seems + to not honor it correctly. Webkit browsers (Chrome, rekonq, Safari) do. + */ +pre, code, kbd, samp { white-space: pre-wrap; }