42f22ce95f7e33dc60db082ae36843869672c62a angie Fri Dec 7 13:06:50 2012 -0800 In cgiMakeCheckboxGroupWithVals's table, put checkboxes in their owncolumns so text doesn't wrap underneath them. diff --git src/lib/cheapcgi.c src/lib/cheapcgi.c index 446395c..d376689 100644 --- src/lib/cheapcgi.c +++ src/lib/cheapcgi.c @@ -1642,32 +1642,34 @@ } void cgiMakeCheckboxGroupWithVals(char *name, char *menu[], char *values[], int menuSize, struct slName *checked, int tableColumns) /* Make a table of checkboxes that have the same variable name but different * values (same behavior as a multi-select input), with nice labels in menu[]. */ { int i; if (values == NULL) values = menu; if (menu == NULL) menu = values; puts(""); for (i = 0; i < menuSize; i++) { if (i > 0 && (i % tableColumns) == 0) printf(""); - printf("\n", name, values[i], - (slNameInList(checked, values[i]) ? "CHECKED" : ""), menu[i]); + printf("" + "\n", + name, values[i], (slNameInList(checked, values[i]) ? "CHECKED" : ""), + menu[i]); } if ((i % tableColumns) != 0) while ((i++ % tableColumns) != 0) printf(""); puts("
%s%s
"); char buf[512]; safef(buf, sizeof(buf), "%s%s", cgiMultListShadowPrefix(), name); cgiMakeHiddenVar(buf, "0"); } void cgiMakeCheckboxGroup(char *name, char *menu[], int menuSize, struct slName *checked, int tableColumns) /* Make a table of checkboxes that have the same variable name but different * values (same behavior as a multi-select input). */ {