mirror of https://github.com/BOINC/boinc.git
Change behaviour of BBCode [code] tag: get rid of multiple newlines, change <pre> to <div>, alter CSS so that long strings no longer break layout.
svn path=/trunk/boinc/; revision=12442
This commit is contained in:
parent
a1f57e957f
commit
49841b2ef6
|
@ -1,4 +1,6 @@
|
|||
<?
|
||||
$cvs_version_tracker[]="\$Id$"; //Generated automatically - do not edit
|
||||
|
||||
require_once('../inc/sanitize_html.inc');
|
||||
|
||||
/**
|
||||
|
@ -167,7 +169,7 @@ function bb2html($text) {
|
|||
"<font color=\"\\1\">\\2</font>",
|
||||
"\\1<li>\\2</li>\n\\3",
|
||||
"<span style=\"font-size: \\1px;\">\\2</span>",
|
||||
"<font class=\"code\"><pre>\\1</pre></font>",
|
||||
"<div class=\"code\">\\1</div>",
|
||||
"<a href=\"mailto:\\1\">\\1</a>",
|
||||
"<a href=\"mailto:\\1\">\\1</a>"
|
||||
);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue