(s: str, maxlen: int)
| 61 | |
| 62 | |
| 63 | def left_align(s: str, maxlen: int) -> str: |
| 64 | stripped = stripcolor(s) |
| 65 | if len(stripped) > maxlen: |
| 66 | # too bad, we remove the color |
| 67 | return stripped[:maxlen] |
| 68 | padding = maxlen - len(stripped) |
| 69 | return s + ' '*padding |
| 70 | |
| 71 | |
| 72 | def build_menu( |
no test coverage detected
searching dependent graphs…