(data: str, prefix: str)
| 131 | |
| 132 | |
| 133 | def indent_text(data: str, prefix: str) -> str: |
| 134 | # Add spacing to first line so that we dedent in cases like this: |
| 135 | # <li>This is |
| 136 | # example text |
| 137 | # over multiple lines |
| 138 | # </li> |
| 139 | dedented = textwrap.dedent(" " * 32 + data).strip() |
| 140 | return textwrap.indent(dedented, prefix[:32]) |
| 141 | |
| 142 | |
| 143 | def is_inline_text(a: Token | None, b: Token | None, c: Token | None) -> bool: |
no outgoing calls
no test coverage detected
searching dependent graphs…