cvs: pres2 / objects.php

From: Date: Sun, 10 Aug 2003 23:12:31 +0000
Subject: cvs: pres2 / objects.php
Groups: php.pres 
Request: Send a blank email to pres+get-815@lists.php.net to get a copy of this message
sterling Sun Aug 10 19:12:31 2003 EDT Modified files: /pres2 objects.php Log: properly format the output, by adding the g flag to sed so it replaces all tabs Index: pres2/objects.php diff -u pres2/objects.php:1.145 pres2/objects.php:1.146 --- pres2/objects.php:1.145 Sun Aug 10 19:08:12 2003 +++ pres2/objects.php Sun Aug 10 19:12:31 2003 @@ -1113,7 +1113,7 @@ case 'python': $prog = trim(which code2html); if (!empty($prog)) { - print nl2br(trim($prog -lpython --no-header -ohtml $_html_filename | sed -e 's/\t/\&nbsp\;\ \&nbsp\; /')); + print nl2br(trim($prog -lpython --no-header -ohtml $_html_filename | sed -e 's/\t/\&nbsp\;\ \&nbsp\; /g')); } else { $this->_highlight_none($_html_filename); }

« previous php.pres (#815) next »