]> git.pld-linux.org Git - projects/buildlogs.git/commitdiff
Split into chunks only if lines longer than 800.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 5 Sep 2005 10:02:16 +0000 (10:02 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 5 Sep 2005 10:02:16 +0000 (10:02 +0000)
obsolete/buildlogs/index.php

index 7db8e707952385f3ea0d84503d12a1f3f1e86483..3a84b1c454489fd634b9b029ddc3cf79ea7b8fc9 100644 (file)
@@ -531,7 +531,10 @@ function dump_log($tail)
        $fd = popen($cmd, "r");
        start_pre();
        while (($s = fgets($fd, 102400)) != false) {
-               $s = chunk_split($s, 800, "\n    ");
+               if (strlen($s) > 800)) {
+                       $s = chunk_split($s, 800, "\n    ");
+                       $s = trim($s);
+               }
                $s = htmlspecialchars($s);
                echo $s;
        }
@@ -624,7 +627,7 @@ function list_archs()
                "alt=\""._("Powered by PLD Linux")."\" border=\"0\" /></a><br />\n" .
             "<small>(c) 2002 ".
             "<a href=\"mailto:feedback@pld-linux.org\">PLD&nbsp;Team</a><br />\n".
-            '$Revision: 1.82 $'.
+            '$Revision: 1.83 $'.
             "</small></div>\n";
 
        # smile ;)
@@ -980,7 +983,7 @@ function welcome()
 <!-- ech... niech strace... -->
 <a href="mailto:feedback@pld-linux.org"><?=_("to us")?></a>. <?=_("Positive opinions are also")?> 
 <a href="mailto:feedback@pld-linux.org"><?=_("welcome")?></a> ;)</p>
-<p>Version: $Id: index.php,v 1.82 2005/09/04 12:40:04 arekm Exp $</p>
+<p>Version: $Id: index.php,v 1.83 2005/09/04 12:54:11 arekm Exp $</p>
 </td><td width="20%">&nbsp;</td></tr>
 </table>
 <?php
This page took 0.069286 seconds and 4 git commands to generate.