MCPcopy Index your code
hub / github.com/SourceCode-AI/aura / wrap

Method wrap

aura/output/text.py:123–126  ·  view source on GitHub ↗
(self, text, left="\u2502 ", right=" \u2502")

Source from the content-addressed store, hash-verified

121 secho(f"{left}{line}{right}", file=self.fd, color=TTY_COLORS)
122
123 def wrap(self, text, left="\u2502 ", right=" \u2502"):
124 remaining_len=self.width - len(left) - len(right)
125 for line in wrap(text, width=remaining_len):
126 self.align(line, left=left, right=right)
127
128 def pformat(self, obj, left="\u2502 ", right=" \u2502"):
129 remaining_len = self.width - len(left) - len(right)

Callers 1

_format_detectionMethod · 0.80

Calls 1

alignMethod · 0.95

Tested by

no test coverage detected