Remove one level of indent from a block. Preserve lazily indented blocks by only removing indent from indented lines.
(self, block: str)
| 322 | return fn_blocks |
| 323 | |
| 324 | def detab(self, block: str) -> str: |
| 325 | """ Remove one level of indent from a block. |
| 326 | |
| 327 | Preserve lazily indented blocks by only removing indent from indented lines. |
| 328 | """ |
| 329 | lines = block.split('\n') |
| 330 | for i, line in enumerate(lines): |
| 331 | if line.startswith(' '*4): |
| 332 | lines[i] = line[4:] |
| 333 | return '\n'.join(lines) |
| 334 | |
| 335 | |
| 336 | class FootnoteInlineProcessor(InlineProcessor): |
no outgoing calls
no test coverage detected