(self, text: str)
| 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) |