mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-11 19:20:01 +08:00
Fixes #16509: Fixed console command help text wordwrap for multi-byte strings
This commit is contained in:
committed by
Alexander Makarov
parent
a0b89f9271
commit
30e10837ba
@@ -4,7 +4,7 @@ Yii Framework 2 Change Log
|
|||||||
2.0.20 under development
|
2.0.20 under development
|
||||||
------------------------
|
------------------------
|
||||||
|
|
||||||
- no changes in this release.
|
- Bug #16509: Fixed console command help text wordwrap for multi-byte strings (alexkart)
|
||||||
|
|
||||||
|
|
||||||
2.0.19 May 21, 2019
|
2.0.19 May 21, 2019
|
||||||
|
|||||||
@@ -684,7 +684,7 @@ class BaseConsole
|
|||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
$pad = str_repeat(' ', $indent);
|
$pad = str_repeat(' ', $indent);
|
||||||
$lines = explode("\n", wordwrap($text, $size[0] - $indent, "\n", true));
|
$lines = explode("\n", wordwrap($text, $size[0] - $indent, "\n"));
|
||||||
$first = true;
|
$first = true;
|
||||||
foreach ($lines as $i => $line) {
|
foreach ($lines as $i => $line) {
|
||||||
if ($first) {
|
if ($first) {
|
||||||
|
|||||||
Reference in New Issue
Block a user