Browse Source

Feature #1282 - Reverting a change that I did not intend to make yet.

Ivan Tcholakov 14 years ago
parent
commit
fb9758345a
1 changed files with 1 additions and 12 deletions
  1. 1 12
      main/inc/lib/fckeditor/fcktemplates.xml.php

+ 1 - 12
main/inc/lib/fckeditor/fcktemplates.xml.php

@@ -86,18 +86,7 @@ function loadCSS($css_name) {
     // Reseting the body's background color to be in white, see Task #1885 and http://www.chamilo.org/en/node/713
     $template_css .= "\n".'body { background: #fff; } /* Resetting the background. */'."\n";
 
-    // Removing system-specific styles and cleaning, see task #1282.
-    $regex = array(
-        '/\/\*(.+?)\*\//sm' => '',			// Removing comments.
-        '/\r\n/sm' => "\n",					// New lines in Unix style.
-        '/\r/sm' => "\n",					// New lines in Unix style.
-        '/\s*\n/sm' => "\n",					// Stripping whitespace from empty lines.
-        '/\n{2}/sm' => "\n\n"					// Removing duplicate empty lines.
-
-    );
-    $template_css = preg_replace(array_keys($regex), $regex, $template_css);
-//var_dump($template_css);
-    return "\n".'<style type="text/css">'.$template_css.'</style>'."\n";
+    return ' <style type="text/css">'.$template_css.'</style>';
 }
 
 /**