[asterisk-commits] branch group/autoconf_and_menuselect r11588 - /team/group/autoconf_and_menuse...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Mar 2 14:33:15 MST 2006


Author: russell
Date: Thu Mar  2 15:33:14 2006
New Revision: 11588

URL: http://svn.digium.com/view/asterisk?rev=11588&view=rev
Log:
alignment tweak

Modified:
    team/group/autoconf_and_menuselect/build_tools/menuselect.c

Modified: team/group/autoconf_and_menuselect/build_tools/menuselect.c
URL: http://svn.digium.com/view/asterisk/team/group/autoconf_and_menuselect/build_tools/menuselect.c?rev=11588&r1=11587&r2=11588&view=diff
==============================================================================
--- team/group/autoconf_and_menuselect/build_tools/menuselect.c (original)
+++ team/group/autoconf_and_menuselect/build_tools/menuselect.c Thu Mar  2 15:33:14 2006
@@ -597,9 +597,9 @@
 	AST_LIST_TRAVERSE(&categories, cat, list) {
 		wmove(menu, i, max_x / 2 - 10);
 		if (!strlen_zero(cat->displayname))
-			snprintf(buf, sizeof(buf), "%d. %s", ++i, cat->displayname);
+			snprintf(buf, sizeof(buf), "%d.%s %s", ++i, i < 9 ? " " : "", cat->displayname);
 		else
-			snprintf(buf, sizeof(buf), "%d. %s", ++i, cat->name);
+			snprintf(buf, sizeof(buf), "%d.%s %s", ++i, i < 9 ? " " : "", cat->name);
 		waddstr(menu, buf);
 	}
 
@@ -648,9 +648,9 @@
 		}
 		wmove(menu, j++, max_x / 2 - 10);
 		if (mem->depsfailed)
-			snprintf(buf, sizeof(buf), "XXX %d. %s", ++i, mem->name);
+			snprintf(buf, sizeof(buf), "XXX %d.%s %s", ++i, i < 9 ? " " : "", mem->name);
 		else
-			snprintf(buf, sizeof(buf), "[%s] %d. %s", mem->enabled ? "*" : " ", ++i, mem->name);
+			snprintf(buf, sizeof(buf), "[%s] %d.%s %s", mem->enabled ? "*" : " ", ++i, i < 9 ? " " : "", mem->name);
 		waddstr(menu, buf);
 		if (i == end)
 			break;



More information about the asterisk-commits mailing list