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
This commit is contained in:
Meik Sievertsen 2008-09-28 17:09:20 +00:00
parent c439b286e9
commit f3844a17f7
4 changed files with 10 additions and 5 deletions

View file

@ -570,6 +570,10 @@ class bbcode
// no break; // no break;
default: default:
$code = str_replace("\t", '   ', $code);
$code = str_replace(' ', '  ', $code);
$code = str_replace(' ', '  ', $code);
// remove newline at the beginning // remove newline at the beginning
if (!empty($code) && $code[0] == "\n") if (!empty($code) && $code[0] == "\n")
{ {

View file

@ -12,8 +12,8 @@
<!-- BEGIN quote_open --><blockquote class="uncited"><div><!-- END quote_open --> <!-- BEGIN quote_open --><blockquote class="uncited"><div><!-- END quote_open -->
<!-- BEGIN quote_close --></div></blockquote><!-- END quote_close --> <!-- BEGIN quote_close --></div></blockquote><!-- END quote_close -->
<!-- BEGIN code_open --><dl class="codebox"><dt>{L_CODE}: <a href="#" onclick="selectCode(this); return false;">{L_SELECT_ALL_CODE}</a></dt><dd><pre><code><!-- END code_open --> <!-- BEGIN code_open --><dl class="codebox"><dt>{L_CODE}: <a href="#" onclick="selectCode(this); return false;">{L_SELECT_ALL_CODE}</a></dt><dd><code><!-- END code_open -->
<!-- BEGIN code_close --></code></pre></dd></dl><!-- END code_close --> <!-- BEGIN code_close --></code></dd></dl><!-- END code_close -->
<!-- BEGIN inline_attachment_open --><div class="inline-attachment"><!-- END inline_attachment_open --> <!-- BEGIN inline_attachment_open --><div class="inline-attachment"><!-- END inline_attachment_open -->
<!-- BEGIN inline_attachment_close --></div><!-- END inline_attachment_close --> <!-- BEGIN inline_attachment_close --></div><!-- END inline_attachment_close -->

View file

@ -467,11 +467,12 @@ blockquote dl.codebox {
} }
dl.codebox code { dl.codebox code {
/* Also see tweaks.css */
overflow: auto; overflow: auto;
display: block; display: block;
height: auto; height: auto;
max-height: 200px; max-height: 200px;
/* white-space: normal; */ white-space: normal;
padding-top: 5px; padding-top: 5px;
font: 0.9em Monaco, "Andale Mono","Courier New", Courier, mono; font: 0.9em Monaco, "Andale Mono","Courier New", Courier, mono;
line-height: 1.3em; line-height: 1.3em;

View file

@ -21,11 +21,11 @@
<!-- END quote_close --> <!-- END quote_close -->
<!-- BEGIN code_open --> <!-- BEGIN code_open -->
<div class="codetitle"><b>{L_CODE}:</b></div><div class="codecontent"><pre> <div class="codetitle"><b>{L_CODE}:</b></div><div class="codecontent">
<!-- END code_open --> <!-- END code_open -->
<!-- BEGIN code_close --> <!-- BEGIN code_close -->
</pre></div> </div>
<!-- END code_close --> <!-- END code_close -->
<!-- BEGIN inline_attachment_open --> <!-- BEGIN inline_attachment_open -->