mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
add custom line break attrubute
This commit is contained in:
parent
d5171d1900
commit
0f223a347a
1 changed files with 2 additions and 1 deletions
|
|
@ -141,6 +141,7 @@ class Markup implements \Yggverse\Yoda\Interface\Model\Gtk\Pango\Markup
|
|||
protected static function _wrap(
|
||||
string $string,
|
||||
int $width,
|
||||
string $break = PHP_EOL,
|
||||
int $line = 1,
|
||||
array $words = [],
|
||||
array $lines = []
|
||||
|
|
@ -182,7 +183,7 @@ class Markup implements \Yggverse\Yoda\Interface\Model\Gtk\Pango\Markup
|
|||
$label->destroy();
|
||||
|
||||
return implode(
|
||||
PHP_EOL,
|
||||
$break,
|
||||
$lines
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue