3a3e7f9931622d8837bf08c3de5dfb328c384203 tdreszer Fri Jun 22 15:59:56 2012 -0700 Third batch of many checkins as dictated by Jim's OCD. Formatting space after if and limiting lines to 100 chars. Changes limited to lines last touched by tdreszer (git blame) so as not to ruin history. None of these changes should affect executables in any way. Only affect is to my sanity and Jim's. diff --git src/hg/hgGateway/hgGateway.c src/hg/hgGateway/hgGateway.c index 1b07885..e4a61ac 100644 --- src/hg/hgGateway/hgGateway.c +++ src/hg/hgGateway/hgGateway.c @@ -50,52 +50,48 @@ be irrelevant in this new database . If databases were changed then use the new default position too. */ if (sameString(position, "genome") || sameString(position, "hgBatch")) position = defaultPosition; jsIncludeFile("jquery.js", NULL); webIncludeResourceFile("jquery-ui.css"); jsIncludeFile("jquery-ui.js", NULL); jsIncludeFile("ajax.js", NULL); jsIncludeFile("autocomplete.js", NULL); jsIncludeFile("hgGateway.js", NULL); jsIncludeFile("utils.js", NULL); -puts( -"
" +puts("
" "The UCSC Genome Browser was created by the \n" "Genome Bioinformatics Group of UC Santa Cruz.\n" "
" "Software Copyright (c) The Regents of the University of California.\n" "All rights reserved.\n" -"
\n" -); + "
\n"); -puts( -"
\n" +puts("\n" "
" "\n" "\n"); -puts( -"
\n"); cgiMakeHiddenVar(hgHubConnectCgiDestUrl, "../cgi-bin/hgTracks"); puts(""); if (gotClade) puts(""); -puts( -"\n" +puts("\n" "\n" "\n"); if(supportsSuggest) puts("\n"); puts( "\n" "\n" ); if (gotClade) { puts("\n"); } @@ -126,53 +122,54 @@ cartSetString(cart, "position", position); cartSetString(cart, "db", db); cartSetString(cart, "org", organism); if (gotClade) cartSetString(cart, "clade", clade); freez(&defaultPosition); position = NULL; puts("\n" +puts("\n" "
cladegenomegenomeassemblyposition or search termgene  
\n"); printCladeListHtml(organism, onChangeClade); puts(""); if(supportsSuggest) hButtonWithOnClick("Submit", "submit", NULL, "submitButtonOnClick()"); else cgiMakeButton("Submit", "submit"); -/* This is a clear submit button that browsers will use by default when enter is pressed in position box. FIXME: This should be done with js onchange event! */ -printf(""); +// This is a clear submit button that browsers will use by default when enter is pressed +// in position box. FIXME: This should be done with js onchange event! +printf(""); cartSaveSession(cart); /* Put up hgsid= as hidden variable. */ -puts( -"
\n" "

\n" -"Click here to reset the browser user interface settings to their defaults."); +puts("

\n" + "Click here to reset " + "the browser user interface settings to their defaults."); #define SURVEY 1 #ifdef SURVEY if (survey && differentWord(survey, "off")) - printf("   %s", survey, surveyLabel ? surveyLabel : "Take survey"); + printf("   " + "%s", + survey, surveyLabel ? surveyLabel : "Take survey"); #endif -puts( -"
\n" +puts("
\n" "
\n" -"
\n" -); + "
\n"); puts(""); puts(""); if(isSearchTracksSupported(db,cart)) { puts(""); } // custom track button. disable hgCustom button on GSID server, until // necessary additional work is authorized. puts(""); if (hubConnectTableExists()) { puts(""); } // configure button puts(""); // clear possition button puts(""); puts("
"); cgiMakeButtonWithMsg(TRACK_SEARCH, TRACK_SEARCH_BUTTON,TRACK_SEARCH_HINT); puts(""); @@ -184,31 +181,32 @@ hgCustomName(),hasCustomTracks ? CT_MANAGE_BUTTON_LABEL:CT_ADD_BUTTON_LABEL, hasCustomTracks ? "Manage your custom tracks" : "Add your own custom tracks" ); } puts(""); printf("\n", "../cgi-bin/hgHubConnect", "track hubs", "Import tracks"); puts(""); -cgiMakeButtonWithMsg("hgTracksConfigPage", "configure tracks and display","Configure track selections and browser display"); +cgiMakeButtonWithMsg("hgTracksConfigPage", "configure tracks and display", + "Configure track selections and browser display"); puts(""); if(supportsSuggest) cgiMakeOnClickButton("document.mainForm.position.value=''; document.getElementById('suggest').value='';", "clear position"); else cgiMakeOnClickButton("document.mainForm.position.value=''", "clear position"); puts("
"); puts("
\n" "
\n" ); @@ -229,32 +227,32 @@ " http://genome.ucsc.edu." "


"); } else if (hIsPrivateHost()) { puts("

WARNING: This is our development and test site. It usually works, but it is filled with tracks in various " "stages of construction, and others of little interest to people outside of our local group. " "It is usually slow because we are building databases on it. The documentation is poor. " "More data than usual is flat out wrong. Maybe you want to go to " "genome.ucsc.edu instead."); } if (hIsGsidServer()) { webNewSection("%s", "Sequence View\n"); - printf("%s", - "Sequence View is a customized version of the UCSC Genome Browser, which is specifically tailored to provide functions needed for the GSID HIV Data Browser.\n"); + printf("%s","Sequence View is a customized version of the UCSC Genome Browser, which is " + "specifically tailored to provide functions needed for the GSID HIV Data Browser.\n"); } hgPositionsHelpHtml(organism, db); puts(""); cartSaveSession(cart); /* Put up hgsid= as hidden variable. */ if (gotClade) printf("\n", clade); else printf("\n", "mammal"); printf("\n", organism); printf("\n", db); puts("


"); }