Remove one level of indent from a block. Preserve lazily indented blocks by only removing indent from indented lines.
(self, block: str)
| 332 | return fn_blocks |
| 333 | |
| 334 | def detab(self, block: str) -> str: |
| 335 | """ Remove one level of indent from a block. |
| 336 | |
| 337 | Preserve lazily indented blocks by only removing indent from indented lines. |
| 338 | """ |
| 339 | lines = block.split('\n') |
| 340 | for i, line in enumerate(lines): |
| 341 | if line.startswith(' '*4): |
| 342 | lines[i] = line[4:] |
| 343 | return '\n'.join(lines) |
| 344 | |
| 345 | |
| 346 | class FootnoteInlineProcessor(InlineProcessor): |
no outgoing calls
no test coverage detected