mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 13:02:24 +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
@ -684,7 +684,7 @@ class BaseConsole
|
||||
return $text;
|
||||
}
|
||||
$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;
|
||||
foreach ($lines as $i => $line) {
|
||||
if ($first) {
|
||||
|
||||
Reference in New Issue
Block a user