This commit is contained in:
Claude 2013-03-28 11:34:06 +01:00
parent f64bdee7f3
commit d65e23ccf3
2 changed files with 1 additions and 4 deletions

View File

@ -579,9 +579,7 @@ class Pastes extends CI_Model
private private
function _format_diff($text) function _format_diff($text)
{ {
$text = explode("\n", $text); $text = '<div class="text" style="font-family:monospace; font: normal normal 1em/1.2em monospace;">' . $text . '</div>';
$text = '<ol><li>' . implode('</li><li>', $text) . '</li></ol>';
$text = '<div class="text" style="font-family:monospace;">' . $text . '</div>';
return $text; return $text;
} }
} }

View File

@ -408,7 +408,6 @@ h4 {
.text_formatted ol li { .text_formatted ol li {
list-style: decimal outside; list-style: decimal outside;
font: normal normal 1em/1.2em monospace
} }
.text_formatted ins { .text_formatted ins {