This commit is contained in:
Will McGugan
2025-09-28 16:23:39 +01:00
parent ce15ea1fa2
commit 57ad676652

View File

@@ -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.