aab4f66a2aca5293f3536cc1d1438b17d2b09dfd tdreszer Thu May 5 16:14:15 2011 -0700 A large set of tiny changes. These fix a lot of discrepencies with bgcolor and font color declarations which were tripping up docttype 4.01. diff --git src/hg/hgCert/hgCert.c src/hg/hgCert/hgCert.c index 1c81546..f270b40 100644 --- src/hg/hgCert/hgCert.c +++ src/hg/hgCert/hgCert.c @@ -1,224 +1,224 @@ /* hgCert - hgCert parses cerfification data file and generates an html file and a .tab file */ #include "common.h" #include "hCommon.h" void usage() /* Explain usage and exit. */ { errAbort( "hgCert - hgCert parses cerfification data file and generates an html file and a .tab file\n" "usage: hgCert certificate.txt >certificate.html\n"); } char *doLine(char *lineType, char *lineIn) { char *result; char line[1000]; strcpy(line, lineIn); *(line+strlen(line) - 1) = '\0'; result = strstr(line, lineType); if (result == NULL) { return(result); } else { result = result + strlen(lineType); return(result); } } char *doLine2(char *lineIn, char *lineType) { char *result; char *chp; char line[1000]; strcpy(line, lineIn); *(line+strlen(line) - 1) = '\0'; chp = strstr(line, ":"); if (chp == NULL) return(strdup("???")); *chp = '\0'; chp ++; chp ++; chp = strdup(chp); strcpy(lineType, line); if (strcmp(chp, " ") == 0) chp = strdup(" "); return(chp); } int main(int argc, char *argv[]) { char **p; char *arg0, *infileName; FILE *inf, *outf; char line[1000], line2[1000]; char *id; char *chp; char *content; char *contact=""; char *join; char *join1, *join2; char *spanner, *variation, *variationEvidence, *comment, *evaluation, *remark; char lineType[100]; //int i,j; if (argc != 2) { usage(); } else { infileName = argv[1]; fprintf(stdout, "
Accession 1 | \n"); + fprintf(stdout, "||||||||
---|---|---|---|---|---|---|---|---|
Accession 1 | \n"); fprintf(stdout, "Accession 2 | \n"); fprintf(stdout, "Spanner | \n"); fprintf(stdout, "Variation | \n"); fprintf(stdout, "Variation Evidence | \n"); fprintf(stdout, "Comment | \n"); fprintf(stdout, "Evaluation | \n"); fprintf(stdout, "Remark | \n"); fprintf(stdout, "Contact | \n"); fprintf(stdout, "
%s | ", join1); printf("%s | ", join2); printf("%s | ", spanner); printf("%s | ", variation); printf("%s | ", variationEvidence); printf("%s | ", comment); printf("%s | ", evaluation); printf("%s | ", remark); printf("%s | ", contact, contact); printf("