If this box uses special characters for the borders of the header, then return the equivalent box that does not. Returns: Box: The most similar Box that doesn't use header-specific box characters. If the current Box already satisfies this criterion, then
(self)
| 83 | return box |
| 84 | |
| 85 | def get_plain_headed_box(self) -> "Box": |
| 86 | """If this box uses special characters for the borders of the header, then |
| 87 | return the equivalent box that does not. |
| 88 | |
| 89 | Returns: |
| 90 | Box: The most similar Box that doesn't use header-specific box characters. |
| 91 | If the current Box already satisfies this criterion, then it's returned. |
| 92 | """ |
| 93 | return PLAIN_HEADED_SUBSTITUTIONS.get(self, self) |
| 94 | |
| 95 | def get_top(self, widths: Iterable[int]) -> str: |
| 96 | """Get the top of a simple box. |