if (!iflags.menu_tab_sep)
Sprintf(buf, "%-20s Level %-12s Fail", " Name", "Category");
else
- Sprintf(buf, "%-20s\tLevel\tCategory\tFail", "Name");
+ Sprintf(buf, "Name\tLevel\tCategory\tFail");
add_menu(tmpwin, NO_GLYPH, &any, 0, 0, ATR_NONE, buf, MENU_UNSELECTED);
for (i = 0; i < MAXSPELL && spellid(i) != NO_SPELL; i++) {
Sprintf(buf, iflags.menu_tab_sep ?
- "%s\t%2d%s\t%s\t%3d%%" : "%-20s %2d%s %-12s %3d%%",
+ "%s\t%-d%s\t%s\t%-d%%" : "%-20s %2d%s %-12s %3d%%",
spellname(i), spellev(i),
spellknow(i) ? " " : "*",
spelltypemnemonic(spell_skilltype(spellid(i))),
p = strchr(data->menu.items[new_item].str, '\t');
while( p ) {
data->menu.tab_stop_size =
- max( data->menu.tab_stop_size, p - p1 );
+ max( data->menu.tab_stop_size, p - p1 + 1 );
p1 = p;
p = strchr(p+1, '\t');
}