Method: rich.text.Text.blank_copy
Calls: 1398, Exceptions: 0, Paths: 1Back
Path 1: 1398 calls (1.0)
'' (1361) '\n' (37)
Text (1398)
1def blank_copy(self, plain: str = "") -> "Text":
2 """Return a new Text instance with copied meta data (but not the string or spans)."""
3 copy_self = Text(
4 plain,
5 style=self.style,
6 justify=self.justify,
7 overflow=self.overflow,
8 no_wrap=self.no_wrap,
9 end=self.end,
10 tab_size=self.tab_size,
11 )
12 return copy_self