From 02d3590322d310222d41deb162a071f1028204d2 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 3 Sep 2014 15:51:10 +0200 Subject: [PATCH] fixed removed spaces when viewing differences (#142) --- htdocs/application/models/pastes.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/application/models/pastes.php b/htdocs/application/models/pastes.php index 9f8bdd3..6679fc6 100644 --- a/htdocs/application/models/pastes.php +++ b/htdocs/application/models/pastes.php @@ -635,6 +635,8 @@ class Pastes extends CI_Model function _format_diff($text) { $text = str_replace("\t", '        ', $text); + $text = str_replace("
", '
', $text); + $text = str_replace(" ", ' ', $text); $text = '
' . $text . '
'; return $text; }