035323fe4a88aea8872eb11de17a3800321cf8e7
galt
Wed Jan 18 19:59:51 2023 -0800
code cleanup based on htmlCheck output. refs #7914
diff --git src/hg/hgTrackUi/hgTrackUi.c src/hg/hgTrackUi/hgTrackUi.c
index 72ea42c..0fece699 100644
--- src/hg/hgTrackUi/hgTrackUi.c
+++ src/hg/hgTrackUi/hgTrackUi.c
@@ -3083,65 +3083,65 @@
jsonObjectAdd(jsonGlobalsHash, name, ele);
}
void showSupertrackInfo(struct trackDb *tdb)
{
// A bit of context when we're in hierarchy: parent description and sibling track list
if (!tdb->parent)
return;
// show super-track info
struct trackDb *tdbParent = tdb->parent;
printf("Track collection: "
"
"
- "%s ",
+ "%s ",
hgTrackUiName(), cartSessionVarName(), cartSessionId(cart),
chromosome, cgiEncode(tdbParent->track), tdbParent->longLabel);
printf("
");
if (tdbParent->html)
{
// collapsed panel for Description
printf("
"); // required by jsCollapsible
jsBeginCollapsibleSectionFontSize(cart, tdb->track, "superDescription", "Description", FALSE,
"medium");
// TODO: better done with regex
char *html = replaceChars(tdbParent->html, "Description", "");
html = replaceChars(html, "Description
", "");
html = replaceChars(html, "Description
", "");
// remove everything after Description text
char *end = stringIn("", html);
if (!end)
end = stringIn("", html);
if (!end)
end = stringIn("", html);
if (end)
*end = '\0';
printf("%s", html);
printf("
To view the full description, click "
- "here.\n",
+ "here.\n",
hgTrackUiName(), cartSessionVarName(), cartSessionId(cart),
chromosome, cgiEncode(tdbParent->track));
jsEndCollapsibleSection();
- printf("
"); // required by jsCollapsible
+ printf("\n"); // required by jsCollapsible
}
// collapsed panel for list of other tracks in the supertrack
char listTitle[1000];
safef(listTitle, sizeof listTitle, "All tracks in this collection (%d)",
slCount(tdbParent->children));
printf(""); // required by jsCollapsible
jsBeginCollapsibleSectionFontSize(cart, tdb->track, "superMembers", listTitle, FALSE, "medium");
printf("");
struct slRef *childRef;
tdbRefSortPrioritiesFromCart(cart, &tdbParent->children);
for (childRef = tdbParent->children; childRef != NULL; childRef = childRef->next)
{
struct trackDb *sibTdb = childRef->val;