mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
api
This commit is contained in:
@@ -870,7 +870,7 @@ class Content(Visual):
|
||||
return Content("".join(text), spans, total_cell_length)
|
||||
|
||||
def wrap(
|
||||
self, width: int, align: TextAlign = "left", overflow: TextOverflow = "fold"
|
||||
self, width: int, *, align: TextAlign = "left", overflow: TextOverflow = "fold"
|
||||
) -> list[Content]:
|
||||
"""Wrap text so that it fits within the given dimensions.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user