Flush accumulated text parts as a single output.
()
| 53 | text_buffer: list[str] = [] |
| 54 | |
| 55 | def flush_text() -> None: |
| 56 | """Flush accumulated text parts as a single output.""" |
| 57 | if text_buffer: |
| 58 | combined_text = ''.join(text_buffer) |
| 59 | print(f'{event.author} > {combined_text}') |
| 60 | text_buffer.clear() |
| 61 | |
| 62 | for part in event.content.parts: |
| 63 | # Text parts are always shown regardless of verbose setting |
no test coverage detected