mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 20:41:20 -05:00
fixed removed spaces when viewing differences (#142)
This commit is contained in:
parent
6dfadc7132
commit
02d3590322
@ -635,6 +635,8 @@ class Pastes extends CI_Model
|
|||||||
function _format_diff($text)
|
function _format_diff($text)
|
||||||
{
|
{
|
||||||
$text = str_replace("\t", ' ', $text);
|
$text = str_replace("\t", ' ', $text);
|
||||||
|
$text = str_replace("<br />", '<br/>', $text);
|
||||||
|
$text = str_replace(" ", ' ', $text);
|
||||||
$text = '<div class="text" style="font-family:monospace; font: normal normal 1em/1.2em monospace;">' . $text . '</div>';
|
$text = '<div class="text" style="font-family:monospace; font: normal normal 1em/1.2em monospace;">' . $text . '</div>';
|
||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user