MCPcopy
hub / github.com/Textualize/rich / rstrip

Method rstrip

rich/text.py:662–664  ·  view source on GitHub ↗

Strip whitespace from end of text.

(self)

Source from the content-addressed store, hash-verified

660 return count
661
662 def rstrip(self) -> None:
663 """Strip whitespace from end of text."""
664 self.plain = self.plain.rstrip()
665
666 def rstrip_end(self, size: int) -> None:
667 """Remove whitespace beyond a certain width at the end of the text.

Callers 9

test_rstripFunction · 0.95
decodeMethod · 0.80
justifyMethod · 0.80
_render_syntax_errorMethod · 0.80
_ipy_display_hookFunction · 0.80
__str__Method · 0.80
__rich_console__Method · 0.80
on_textMethod · 0.80
divide_lineFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_rstripFunction · 0.76