5340ada259767114db7bdd6100946b9c7cd4b84a gperez2 Wed Mar 12 16:12:55 2025 -0700 Adding
tags for the displayed links and changing the order of View and Download conversion links, refs #20666 diff --git src/hg/hgLiftOver/hgLiftOver.c src/hg/hgLiftOver/hgLiftOver.c index bf060fd009e..b9dba277453 100644 --- src/hg/hgLiftOver/hgLiftOver.c +++ src/hg/hgLiftOver/hgLiftOver.c @@ -560,47 +560,47 @@ ct = liftOverPositions(oldTn.forCgi, chainHash, minMatch, minBlocks, 0, minSizeQ, minChainT, 0, fudgeThick, mapped, unmapped, multiple, NULL, &errCt); if (ct == -1) /* programming error */ errAbort("ERROR: Unsupported data format.\n"); webNewSection("Results"); if (ct > 0) { /* some records succesfully converted */ cgiParagraph(""); printf("Successfully converted %d record", ct); printf("%s: ", ct > 1 ? "s" : ""); - printf("Download Conversions\n", mappedTn.forCgi); - printf("View Conversions\n", mappedTn.forCgi); + printf("
View conversions
\n", mappedTn.forCgi); + printf("
Download conversions
\n", mappedTn.forCgi); jsInlineF("document.getElementById('viewLink').addEventListener('click', function(ev) { " "ev.preventDefault();" "forceDisplayBedFile(ev.currentTarget.getAttribute('data-url'));" "});"); } if (errCt) { /* some records not converted */ cgiParagraph(""); printf("Conversion failed on %d record", errCt); printf("%s.    ", errCt > 1 ? "s" : ""); - printf("Display failure file   \n", + printf("
Display failure file
   \n", unmappedTn.forCgi); - printf("Explain failure messages\n", HGLFT_ERRORHELP_VAR); + printf("
Explain failure messages
\n", HGLFT_ERRORHELP_VAR); puts("

Failed input regions:\n"); struct lineFile *errFile = lineFileOpen(unmappedTn.forCgi, TRUE); puts("

\n");
             while (lineFileNext(errFile, &line, &lineSize))
                 puts(line);
             lineFileClose(&errFile);
             puts("
\n"); } if ((multiple) && (lft == positions)) { puts("
\n");
         puts("Note: "multiple" option is not supported for position format.");
         puts("
\n"); } webParamsUsed(minMatch, multiple, minSizeQ, minChainT, minBlocks, fudgeThick);