Print a line, stripping Rich markup in non-PRETTY mode. Uses Rich's own markup parser to avoid stripping legitimate bracket content like ``[ERROR]`` or ``[Physics]`` from server data.
(text: str)
| 142 | |
| 143 | |
| 144 | def print_line(text: str) -> None: |
| 145 | """Print a line, stripping Rich markup in non-PRETTY mode. |
| 146 | |
| 147 | Uses Rich's own markup parser to avoid stripping legitimate bracket |
| 148 | content like ``[ERROR]`` or ``[Physics]`` from server data. |
| 149 | """ |
| 150 | if console.no_color: |
| 151 | print(Text.from_markup(text).plain) |
| 152 | else: |
| 153 | console.print(text) |
| 154 | |
| 155 | |
| 156 | def print_plain_item(value: str) -> None: |
no outgoing calls