ff5d21f573f467d2481aacb2b0bc42945828f41b chmalee Tue Nov 29 09:29:47 2022 -0800 The substituted html field of trackDb does not belong in the settings hash, refs Jonathan email diff --git src/hg/makeDb/hgTrackDb/hgTrackDb.c src/hg/makeDb/hgTrackDb/hgTrackDb.c index f9cc94a..6c2adc9 100644 --- src/hg/makeDb/hgTrackDb/hgTrackDb.c +++ src/hg/makeDb/hgTrackDb/hgTrackDb.c @@ -872,31 +872,30 @@ for (td = tdbList; td != NULL; td = td->next) { hVarSubstTrackDb(td, database); char *hold = td->html; td->html = ""; subChar(td->type, '\t', ' '); /* Tabs confuse things. */ subChar(td->shortLabel, '\t', ' '); /* Tabs confuse things. */ subChar(td->longLabel, '\t', ' '); /* Tabs confuse things. */ trackDbTabOut(td, f); td->html = hold; // be sure to change the settings hash with the updated substituted settings if (td->settingsHash) { hashReplace(td->settingsHash, "shortLabel", cloneString(td->shortLabel)); hashReplace(td->settingsHash, "longLabel", cloneString(td->longLabel)); - hashReplace(td->settingsHash, "html", cloneString(td->html)); } } carefulClose(&f); verbose(2, "Wrote tab representation to %s\n", tab); } /* Update database */ { char *create, *end; char query[2048]; struct sqlConnection *conn = sqlConnect(database); /* Load in table definition. */ readInGulp(sqlFile, &create, NULL); create = trimSpaces(create);