mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +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(
|
protected static function _wrap(
|
||||||
string $string,
|
string $string,
|
||||||
int $width,
|
int $width,
|
||||||
|
string $break = PHP_EOL,
|
||||||
int $line = 1,
|
int $line = 1,
|
||||||
array $words = [],
|
array $words = [],
|
||||||
array $lines = []
|
array $lines = []
|
||||||
|
|
@ -182,7 +183,7 @@ class Markup implements \Yggverse\Yoda\Interface\Model\Gtk\Pango\Markup
|
||||||
$label->destroy();
|
$label->destroy();
|
||||||
|
|
||||||
return implode(
|
return implode(
|
||||||
PHP_EOL,
|
$break,
|
||||||
$lines
|
$lines
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue