Author: Tobias Schlitt
Date: 2006-01-18 11:26:15 +0100 (Wed, 18 Jan 2006)
New Revision: 1956
Log:
- Fix unreported bug: When using ezcConsoleOutput::outputLine() in combination
with a background color, this color was also applied to the next line.
Modified:
packages/ConsoleTools/trunk/src/output.php
Modified: packages/ConsoleTools/trunk/src/output.php
===================================================================
--- packages/ConsoleTools/trunk/src/output.php 2006-01-18 09:26:05 UTC (rev
1955)
+++ packages/ConsoleTools/trunk/src/output.php 2006-01-18 10:26:15 UTC (rev
1956)
@@ -17,7 +17,6 @@
* with console text output.
*
* <code>
- *
* // Create the output handler
* $out = new ezcConsoleOutput();
*
@@ -58,8 +57,10 @@
* // This is visible, since we set verbosityLevel to 10, and printed in format
* // 'failure'
* $out->outputText( "And some not so verbose, failure output.\n", 'failure',
5 );
+ * </code>
*
- * </code>
+ * For a list of valid colors, style attributes and background colors, please
+ * refer to [EMAIL PROTECTED] ezcConsoleOutputFormat}.
*
* @package ConsoleTools
* @version //autogen//
@@ -322,7 +323,8 @@
*/
public function outputLine( $text = '', $format = 'default',
$verbosityLevel = 1 )
{
- $this->outputText( $text . PHP_EOL, $format, $verbosityLevel );
+ $this->outputText( $text, $format, $verbosityLevel );
+ $this->outputText( PHP_EOL, null, $verbosityLevel );
}
/**
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components