MCPcopy
hub / github.com/pallets/click / indent_only

Method indent_only

src/click/_textwrap.py:177–188  ·  view source on GitHub ↗
(self, text: str)

Source from the content-addressed store, hash-verified

175 self.subsequent_indent = old_subsequent_indent
176
177 def indent_only(self, text: str) -> str:
178 rv = []
179
180 for idx, line in enumerate(text.splitlines()):
181 indent = self.initial_indent
182
183 if idx > 0:
184 indent = self.subsequent_indent
185
186 rv.append(f"{indent}{line}")
187
188 return "\n".join(rv)

Callers 1

wrap_textFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected