| 610 | } |
| 611 | |
| 612 | static void _add_command(column_composer &cols, const int column, |
| 613 | const command_type cmd, |
| 614 | const string &desc, |
| 615 | const unsigned int space_to_colon = 7) |
| 616 | { |
| 617 | string command_name = command_to_string(cmd); |
| 618 | if (strcmp(command_name.c_str(), "<") == 0) |
| 619 | command_name += "<"; |
| 620 | |
| 621 | const int cmd_len = strwidth(command_name); |
| 622 | string line = "<w>" + command_name + "</w>"; |
| 623 | for (unsigned int i = cmd_len; i < space_to_colon; ++i) |
| 624 | line += " "; |
| 625 | line += ": " + untag_tiles_console(desc) + "\n"; |
| 626 | |
| 627 | cols.add_formatted( |
| 628 | column, |
| 629 | line.c_str(), |
| 630 | false); |
| 631 | } |
| 632 | |
| 633 | static void _add_insert_commands(column_composer &cols, const int column, |
| 634 | const unsigned int space_to_colon, |
no test coverage detected