From eb1602b3e3ad6a99d6e1c8a65c52258b77362498 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Tue, 1 Jan 2013 12:18:41 -0800 Subject: [PATCH 1/2] Add white-space: pre-wrap to the default CSS. Make preformatted text wrap by default, so that you don't have to scroll countless furlongs horizontally or copy and paste into a local text editor in order to read long log output. Pre-wrap appears to be supported in all modern browsers. "word-wrap: break-word" could be added if support for IE <= 7 is desired. --- master/buildbot/status/web/files/default.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/master/buildbot/status/web/files/default.css b/master/buildbot/status/web/files/default.css index a6178751fc3..dbd4ce714fb 100644 --- a/master/buildbot/status/web/files/default.css +++ b/master/buildbot/status/web/files/default.css @@ -560,6 +560,10 @@ span.header { display: none; } +pre { + white-space: pre-wrap; +} + /* change comments (use regular colors here) */ pre.comments>a:link,pre.comments>a:visited { color: blue; From 006286cb387730aff96baa23437a46d86f92a953 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Tue, 1 Jan 2013 19:02:09 -0800 Subject: [PATCH 2/2] Add a note about default.css wrapping preformatted text. --- master/docs/relnotes/index.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/master/docs/relnotes/index.rst b/master/docs/relnotes/index.rst index c033faa04af..1339a140e72 100644 --- a/master/docs/relnotes/index.rst +++ b/master/docs/relnotes/index.rst @@ -21,6 +21,8 @@ Features * :bb:step:`CopyDirectory` has been added. +* default.css now wraps preformatted text by default. + Deprecations, Removals, and Non-Compatible Changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~