Indent all lines of the input.
(self, text: str)
| 65 | return super().visit_expr(expr) |
| 66 | |
| 67 | def indent(self, text: str) -> str: |
| 68 | """ |
| 69 | Indent all lines of the input. |
| 70 | """ |
| 71 | if text == "": |
| 72 | return "" |
| 73 | lines = text.split("\n") |
| 74 | return self.indent_str + f"\n{self.indent_str}".join(lines) |
| 75 | |
| 76 | def build_ast_node(self, nodename: str, force_newline=False, **kwargs: str) -> str: |
| 77 | """ |