Development

Changeset 1796

You must first sign up to be able to contribute.

Changeset 1796

Show
Ignore:
Timestamp:
08/24/06 08:04:28 (2 years ago)
Author:
fabien
Message:

pake: fixed some color issues

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/pake/trunk/lib/pake/pakeApp.class.php

    r1794 r1796  
    277277      if ($w > $width) $width = $w; 
    278278    } 
    279     $width += 12
     279    $width += strlen(pakeColor::colorize(' ', 'INFO'))
    280280 
    281281    echo "available pake tasks:\n"; 
  • tools/pake/trunk/lib/pake/pakeFunction.php

    r1794 r1796  
    348348  if (pakeApp::get_instance()->get_verbose()) 
    349349  { 
    350     echo sprintf('>> %-20s %s', pakeColor::colorize($section, 'INFO'), pakeApp::excerpt($text))."\n"; 
     350    $width = 9 + strlen(pakeColor::colorize('', 'INFO')); 
     351    echo sprintf('>> %-'.$width.'s %s', pakeColor::colorize($section, 'INFO'), pakeApp::excerpt($text))."\n"; 
    351352  } 
    352353}