Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Write clean new line for writeLine method (no background color) #3194

Closed
wants to merge 1 commit into from

2 participants

@ThomasCantonnet

The writeLine method didn't return a clean \n (had the same colors (front and background) as string) resulting in messed up output.

@ghost Unknown referenced this pull request from a commit
@weierophinney weierophinney Merge branch 'hotfix/3194'
Close #3194
db76099
@ghost Unknown referenced this pull request from a commit
@weierophinney weierophinney Merge branch 'hotfix/3194' into develop
Forward port #3194
9fcdb41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  library/Zend/Console/Adapter/AbstractAdapter.php
View
3  library/Zend/Console/Adapter/AbstractAdapter.php
@@ -101,7 +101,8 @@ public function writeLine($text = "", $color = null, $bgColor = null)
} elseif ($width == $consoleWidth) {
$this->write($text, $color, $bgColor);
} else {
- $this->write($text . "\n", $color, $bgColor);
+ $this->write($text, $color, $bgColor);
+ $this->write("\n");
}
}
Something went wrong with that request. Please try again.