DevHeads.net

com web/windows: Right align file sizes: include/listing.php

Link: <a href="http://git.php.net/?p=web/windows.git;a=commitdiff;h=87edc32d5d1b942c9309cc16c1afe63a4351d220" title="http://git.php.net/?p=web/windows.git;a=commitdiff;h=87edc32d5d1b942c9309cc16c1afe63a4351d220">http://git.php.net/?p=web/windows.git;a=commitdiff;h=87edc32d5d1b942c930...</a>

Log:
Right align file sizes

Changed paths:
M include/listing.php

Diff:
diff --git a/include/listing.php b/include/listing.php
index e34b14f..7c54ec9 100644
--- a/include/listing.php
+++ b/include/listing.php
@@ -299,7 +299,7 @@ function generate_latest_html_piece($fname, $ts, $size, $ver, $cur_ver)

return str_replace(
array("DATETIME", "SIZE", "FNAME"),
- array(date("m/d/Y h:i A", $ts), (int)$size, $fn),
+ array(date("m/d/Y h:i A", $ts), str_pad((int)$size, 8, ' ', STR_PAD_LEFT), $fn),
$tpl
);
}