fc41b9864400d6030806ea0188221ed0646cb28a lrnassar Fri Oct 3 16:48:20 2025 -0700 Adding a line break so the API key doesn't show up just below the text, refs #36428 diff --git src/hg/hgHubConnect/hgHubConnect.c src/hg/hgHubConnect/hgHubConnect.c index 3d4f8333071..a9fae7b6897 100644 --- src/hg/hgHubConnect/hgHubConnect.c +++ src/hg/hgHubConnect/hgHubConnect.c @@ -436,31 +436,31 @@ puts("<div id='apiKeySection' class='tabSection'>"); puts("<h4>Hubtools API key</h4>"); char *userName = wikiLinkUserName(); char *userId = wikiLinkUserId(); if (userName==NULL || userId==NULL) { char *hgsid = cartSessionId(cart); char *loginUrl = wikiLinkUserLoginUrlReturning(hgsid, wikiLinkEncodeReturnUrl(hgsid, "hgHubConnect", "#dev")); printf("<div class='help'>You are not logged in. Please <a href='%s'>Login</a> now, then this page will show the API key.</div>", loginUrl); } else { char *existingKey = getApiKey(userName); if (existingKey) { - puts("<div id='apiKeyInstructions' class='help'>You have <span id='removeOnGenerate'>already</span> generated an api key for use in hubtools. If you would like to generate a new key (which automatically revokes old keys), please click 'generate key'. Otherwise, you can copy and paste the below key to your ~/.hubtools.conf file:<br>"); + puts("<div id='apiKeyInstructions' class='help'>You have <span id='removeOnGenerate'>already</span> generated an api key for use in hubtools. If you would like to generate a new key (which automatically revokes old keys), please click 'generate key'. Otherwise, you can copy and paste the below key to your ~/.hubtools.conf file:<br><br>"); puts("<div id='apiKey' style='margin-left: 15px; font-family: monospace'>"); printf("%s\n", existingKey); puts("</div>"); puts("</div>"); puts("<div id='generateDiv' class='help'>Generate an api key <button id='generateApiKey'>generate key</button></div>"); } else { puts("<div id='generateDiv' class='help'>To use the <tt>hubtools up</tt> command, click 'generate key'"); puts("<button id='generateApiKey'>generate key</button></div>"); printf("<div id='apiKeyInstructions' style='display: %s'>Now, create a file ~/.hubtools.conf and add the key:<br>\n", existingKey != NULL ? "block" : "none"); puts("<div id='apiKey' style='margin-left: 15px; font-family: monospace'>"); puts("</div></div>"); } printf("<div id='revokeDiv' class='help' style='display: %s'>\nTo revoke any apiKeys associated with your account, click the revoke button: <button id='revokeApiKeys'>revoke</button>\n</div>", existingKey != NULL ? "block" : "none");