PLD-doc: PLD_www_res/buildlogs/index.php Split into chunks only if...
arekm
arekm at pld-linux.org
Mon Sep 5 12:02:22 CEST 2005
Author: arekm Date: Mon Sep 5 10:02:21 2005 GMT
Module: PLD-doc Tag: HEAD
---- Log message:
Split into chunks only if lines longer than 800.
---- Files affected:
PLD-doc/PLD_www_res/buildlogs:
index.php (1.83 -> 1.84)
---- Diffs:
================================================================
Index: PLD-doc/PLD_www_res/buildlogs/index.php
diff -u PLD-doc/PLD_www_res/buildlogs/index.php:1.83 PLD-doc/PLD_www_res/buildlogs/index.php:1.84
--- PLD-doc/PLD_www_res/buildlogs/index.php:1.83 Sun Sep 4 14:54:11 2005
+++ PLD-doc/PLD_www_res/buildlogs/index.php Mon Sep 5 12:02:16 2005
@@ -531,7 +531,10 @@
$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;
}
================================================================
---- CVS-web:
http://cvs.pld-linux.org/PLD-doc/PLD_www_res/buildlogs/index.php?r1=1.83&r2=1.84&f=u
More information about the pld-cvs-commit
mailing list