a991e57ae48c928570964e830f7e8a5dd482151b max Tue May 24 17:10:58 2016 -0700 forgot to add file in previous commit diff --git src/hg/hgc/pubs.c src/hg/hgc/pubs.c index 7cedef5..24de7ec 100644 --- src/hg/hgc/pubs.c +++ src/hg/hgc/pubs.c @@ -378,55 +378,30 @@ static void printLimitWarning(struct sqlConnection *conn, char *markerTable, char *item, int itemLimit, char *sectionList) { char query[4000]; // no need to check for illegal characters in sectionList sqlSafef(query, sizeof(query), "SELECT COUNT(*) from %s WHERE markerId='%s' AND section in (%-s) ", markerTable, item, sectionList); if (sqlNeedQuickNum(conn, query) > itemLimit) { printf("<b>This marker is mentioned more than %d times</b><BR>\n", itemLimit); printf("The results would take too long to load in your browser and are " "therefore limited to the %d most recent articles.<P>\n", itemLimit); } } -static void printAddWbr(char *text, int distance) -/* a crazy hack for firefox/mozilla that is unable to break long words in tables - * We need to add a <wbr> tag every x characters in the text to make text breakable. - */ -{ -int i; -i = 0; -char *c; -c = text; -bool doNotBreak = FALSE; -while (*c != 0) - { - if ((*c=='&') || (*c=='<')) - doNotBreak = TRUE; - if (*c==';' || (*c =='>')) - doNotBreak = FALSE; - - printf("%c", *c); - if (i % distance == 0 && ! doNotBreak) - printf("<wbr>"); - c++; - i++; - } -} - /* keep only uppercase letters in string*/ void eraseAllButUpper(char *s) { char *in, *out; char c; in = out = s; for (;;) { c = *in++; if (c == 0) break; if (isupper(c)) *out++ = c; }