Actually this was still useful for normal output
Actually this was still useful for normal output

file:a/index.php -> file:b/index.php
--- a/index.php
+++ b/index.php
@@ -28,6 +28,13 @@
   */
  require_once($gitphp_conf['smarty_prefix'] . "Smarty.class.php");
  $tpl =& new Smarty;
+ if (isset($_GET['a']) &&
+     ($_GET['a'] != "commitdiff_plain") &&
+     ($_GET['a'] != "blob_plain") &&
+     ($_GET['a'] != "blobdiff_plain")) {
+	$tpl->load_filter('output','trimwhitespace');
+}
+
 
  $rss_link = FALSE;
  $suppress_headers = FALSE;

comments