| 104 | |
| 105 | |
| 106 | class CommandBlock: |
| 107 | def __init__(self, xfail): |
| 108 | self.xfail = xfail |
| 109 | self.content = None |
| 110 | |
| 111 | def add(self, line): |
| 112 | if self.content is None: |
| 113 | self.content = line |
| 114 | else: |
| 115 | self.content += f"\n{line}" |
| 116 | |
| 117 | def __str__(self): |
| 118 | return dedent(self.content) |
| 119 | |
| 120 | |
| 121 | # Extract any ``` blocks from the README |
no outgoing calls