From 49841b2ef66ca9e6d00161c0d82376565bdb8488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rytis=20Slatkevi=C4=8Dius?= Date: Sat, 21 Apr 2007 12:10:15 +0000 Subject: [PATCH] Change behaviour of BBCode [code] tag: get rid of multiple newlines, change
 to 
, alter CSS so that long strings no longer break layout. svn path=/trunk/boinc/; revision=12442 --- html/inc/text_transform.inc | 4 +++- html/user/white.css | 14 ++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/html/inc/text_transform.inc b/html/inc/text_transform.inc index 85840bf9af..562dc8d9aa 100644 --- a/html/inc/text_transform.inc +++ b/html/inc/text_transform.inc @@ -1,4 +1,6 @@ \\2", "\\1
  • \\2
  • \n\\3", "\\2", - "
    \\1
    ", + "
    \\1
    ", "\\1", "\\1" ); diff --git a/html/user/white.css b/html/user/white.css index 5f872540b2..ca7c44be7c 100644 --- a/html/user/white.css +++ b/html/user/white.css @@ -238,12 +238,22 @@ span.news_date { font-size: 0.9em; } - .code { - font-family: System, Fixed, sans-serif; + font-family: "Consolas", "Courier New", courier, monospace; + display: block; + margin-left: 5em; + border-left: 3px solid #ccaaaa; + padding-left: 1em; + white-space: nowrap; + overflow: auto; color: #000000; } +* html body .code { + /* IE hack */ + white-space: normal; +} + #news { background-color: #dddddd; vertical-align: top;