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("<b>Track collection: "
            "<img height=12 src='../images/ab_up.gif'>"
-            "<a href='%s?%s=%s&c=%s&g=%s'>%s </b></a>",
+            "<a href='%s?%s=%s&c=%s&g=%s'>%s </a></b>",
             hgTrackUiName(), cartSessionVarName(), cartSessionId(cart),
             chromosome, cgiEncode(tdbParent->track), tdbParent->longLabel);
 printf("<p>");
 
 if (tdbParent->html)
     {
     // collapsed panel for Description
     printf("<p><table>");  // required by jsCollapsible
     jsBeginCollapsibleSectionFontSize(cart, tdb->track, "superDescription", "Description", FALSE,
                                             "medium");
     // TODO: better done with regex
     char *html = replaceChars(tdbParent->html, "<H", "<h");
     html = replaceChars(html, "</H", "</h");
 
     // remove Description header
     html = replaceChars(html, "<h2>Description</h2>", "");
     html = replaceChars(html, "<h3>Description</h3>", "");
     html = replaceChars(html, "<h1>Description</h1>", "");
 
     // remove everything after Description text
     char *end = stringIn("<h2>", html);
     if (!end)
         end = stringIn("<h1>", html);
     if (!end)
         end = stringIn("<h3>", html);
     if (end)
         *end = '\0';
     printf("%s", html);
     printf("<p><i>To view the full description, click "
-                "<a target='_blank' href='%s?%s=%s&c=%s&g=%s#TRACK_HTML'>here.</i></a>\n",
+                "<a target='_blank' href='%s?%s=%s&c=%s&g=%s#TRACK_HTML'>here.</a></i>\n",
                         hgTrackUiName(), cartSessionVarName(), cartSessionId(cart),
                         chromosome, cgiEncode(tdbParent->track));
     jsEndCollapsibleSection();
-    printf("</table>"); // required by jsCollapsible
+    printf("</table>\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("<table>");  // required by jsCollapsible
 jsBeginCollapsibleSectionFontSize(cart, tdb->track, "superMembers", listTitle, FALSE, "medium");
 printf("<table cellpadding='2' style='margin-left: 50px';>");
 struct slRef *childRef;
 tdbRefSortPrioritiesFromCart(cart, &tdbParent->children);
 for (childRef = tdbParent->children; childRef != NULL; childRef = childRef->next)
     {
     struct trackDb *sibTdb = childRef->val;