(self, items, columns=4, width=80)
| 2123 | self.output.write(_introdoc()) |
| 2124 | |
| 2125 | def list(self, items, columns=4, width=80): |
| 2126 | items = sorted(items) |
| 2127 | colw = width // columns |
| 2128 | rows = (len(items) + columns - 1) // columns |
| 2129 | for row in range(rows): |
| 2130 | for col in range(columns): |
| 2131 | i = col * rows + row |
| 2132 | if i < len(items): |
| 2133 | self.output.write(items[i]) |
| 2134 | if col < columns - 1: |
| 2135 | self.output.write(' ' + ' ' * (colw - 1 - len(items[i]))) |
| 2136 | self.output.write('\n') |
| 2137 | |
| 2138 | def listkeywords(self): |
| 2139 | self.output.write(''' |
no test coverage detected