From 97c91fb2c2297b64de229b95712c1fdf2b74e222 Mon Sep 17 00:00:00 2001 From: "henning.noren" <henning.noren@gmail.com> Date: Thu, 4 Jan 2007 20:53:58 +0100 Subject: [PATCH] faster_indent.patch Replaces a print-loop with str_repeat concatenated with the final output darcs-hash:20070104195358-d2a3e-a1f74b5380e7426b3f7e61c76d58e36363971eee.gz --- inc/common.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/inc/common.php b/inc/common.php index 21dea4d5f..2c200cf5a 100644 --- a/inc/common.php +++ b/inc/common.php @@ -40,8 +40,7 @@ function hsc($string){ * @author Andreas Gohr <andi@splitbrain.org> */ function ptln($string,$intend=0){ - for($i=0; $i<$intend; $i++) print ' '; - echo "$string\n"; + echo str_repeat(' ', $intend)."$string\n"; } /** -- GitLab