Development

Changeset 1878

You must first sign up to be able to contribute.

Changeset 1878

Show
Ignore:
Timestamp:
08/30/06 14:45:59 (2 years ago)
Author:
fabien
Message:

pake: added a new pake_format_action function

Files:

Legend:

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

    r1825 r1878  
    343343} 
    344344 
     345function pake_format_action($section, $text) 
     346{ 
     347  if (pakeApp::get_instance()->get_verbose()) 
     348  { 
     349    $width = 9 + strlen(pakeColor::colorize('', 'INFO')); 
     350    return sprintf('>> %-'.$width.'s %s', pakeColor::colorize($section, 'INFO'), pakeApp::excerpt($text))."\n"; 
     351  } 
     352} 
     353 
    345354function pake_echo_action($section, $text) 
    346355{ 
    347   if (pakeApp::get_instance()->get_verbose()) 
    348   { 
    349     $width = 9 + strlen(pakeColor::colorize('', 'INFO')); 
    350     echo sprintf('>> %-'.$width.'s %s', pakeColor::colorize($section, 'INFO'), pakeApp::excerpt($text))."\n"; 
    351   } 
     356  echo pake_format_action($section, $text); 
    352357} 
    353358