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("
%s | \n", name, values[i], - (slNameInList(checked, values[i]) ? "CHECKED" : ""), menu[i]); + printf("" + " | %s | \n", + name, values[i], (slNameInList(checked, values[i]) ? "CHECKED" : ""), + menu[i]); } if ((i % tableColumns) != 0) while ((i++ % tableColumns) != 0) printf(""); puts(" |