From f3844a17f7b5d78a3fff46f653552726defc6499 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 28 Sep 2008 17:09:20 +0000 Subject: [PATCH] revert r8893 - there were massive problems with the display and select all code git-svn-id: file:///svn/phpbb/trunk@8954 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/bbcode.php | 4 ++++ phpBB/styles/prosilver/template/bbcode.html | 4 ++-- phpBB/styles/prosilver/theme/content.css | 3 ++- phpBB/styles/subsilver2/template/bbcode.html | 4 ++-- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/phpBB/includes/bbcode.php b/phpBB/includes/bbcode.php index 726e53fd82..d688f660f2 100644 --- a/phpBB/includes/bbcode.php +++ b/phpBB/includes/bbcode.php @@ -570,6 +570,10 @@ class bbcode // no break; default: + $code = str_replace("\t", '   ', $code); + $code = str_replace(' ', '  ', $code); + $code = str_replace(' ', '  ', $code); + // remove newline at the beginning if (!empty($code) && $code[0] == "\n") { diff --git a/phpBB/styles/prosilver/template/bbcode.html b/phpBB/styles/prosilver/template/bbcode.html index 9c6a640ef4..bb90c46ced 100644 --- a/phpBB/styles/prosilver/template/bbcode.html +++ b/phpBB/styles/prosilver/template/bbcode.html @@ -12,8 +12,8 @@
-
{L_CODE}: {L_SELECT_ALL_CODE}

-
+
{L_CODE}: {L_SELECT_ALL_CODE}
+
diff --git a/phpBB/styles/prosilver/theme/content.css b/phpBB/styles/prosilver/theme/content.css index 98c5d3fbb3..936b53f78a 100644 --- a/phpBB/styles/prosilver/theme/content.css +++ b/phpBB/styles/prosilver/theme/content.css @@ -467,11 +467,12 @@ blockquote dl.codebox { } dl.codebox code { + /* Also see tweaks.css */ overflow: auto; display: block; height: auto; max-height: 200px; - /* white-space: normal; */ + white-space: normal; padding-top: 5px; font: 0.9em Monaco, "Andale Mono","Courier New", Courier, mono; line-height: 1.3em; diff --git a/phpBB/styles/subsilver2/template/bbcode.html b/phpBB/styles/subsilver2/template/bbcode.html index 0e95fdbcf3..50162740d0 100644 --- a/phpBB/styles/subsilver2/template/bbcode.html +++ b/phpBB/styles/subsilver2/template/bbcode.html @@ -21,11 +21,11 @@ -
{L_CODE}:
+
{L_CODE}:
-
+