8d76992254bbc8ff81f73b4b48c086144a230b9e
hiram
Thu Aug 31 14:58:37 2017 -0700
fixing up some subtle html errors refs #18762
diff --git src/hg/hgTables/schema.c src/hg/hgTables/schema.c
index 669c73e..021dcb3 100644
--- src/hg/hgTables/schema.c
+++ src/hg/hgTables/schema.c
@@ -342,31 +342,31 @@
{
if (tdb != NULL && isNotEmpty(tdb->html))
{
webNewSection("%s (%s) Track Description", tdb->shortLabel, tdb->track);
char *browserVersion;
if (btIE == cgiClientBrowser(&browserVersion, NULL, NULL) && *browserVersion < '8')
puts(tdb->html);
else
{
// H2 (as in "
Description
") has a big top margin, which adds to
// the 10px start-of-web-section (except for IE < 8, above).
// Tim's trick for moving the text back up in this case, to look like more
// like details pages in which HR's bottom margin melts into H2's top margin:
char *s = skipLeadingSpaces(tdb->html);
if (startsWith("", s) || startsWith("", s))
- printf("%s\n",
+ printf("
%s\n
",
tdb->html);
else
puts(tdb->html);
}
}
}
static void showSchemaDb(char *db, struct trackDb *tdb, char *table)
/* Show schema to open html page. */
{
struct trackDb *tdbForConn = tdb ? tdb : curTrack;
struct sqlConnection *conn;
if (tdbForConn == NULL)
conn = hAllocConn(db);