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/ameme/fixpAmeme.c src/ameme/fixpAmeme.c
index cd2f4b9..fe53010 100644
--- src/ameme/fixpAmeme.c
+++ src/ameme/fixpAmeme.c
@@ -1743,32 +1743,32 @@
 }
 
 
 void setFontColor(struct rgbColor color)
 /* Set the font color for html. */
 {
 static struct rgbColor lastColor = {0,0,0};
 static boolean firstTextColorSwitch = TRUE;
 
 
 if (color.r != lastColor.r || color.b != lastColor.b || color.g != lastColor.g)
     {
     if (firstTextColorSwitch)
         firstTextColorSwitch = FALSE;
     else
-        printf("</FONT>");
-    printf("<FONT COLOR=#%02X%02X%02X>",color.r, color.g, color.b);
+        printf("</span>");
+    printf("<span style='color:#%02X%02X%02X;'>",color.r, color.g, color.b);
     lastColor = color;
     }
 }
 
 void blackText()
 /* Set the font color for html to black. */
 {
 static struct rgbColor black = {0,0,0};
 setFontColor(black);
 }
 
 void colorTextOut(char c, struct rgbColor color)
 /* Print out one character in color to html file. */
 {
 setFontColor(color);
@@ -2296,26 +2296,26 @@
     {
     errAbort("ameme - find common patterns in DNA\n"
              "usage\n"
              "    ameme good=goodIn.fa [bad=badIn.fa] [numMotifs=2] [background=m1] [maxOcc=2]\n"
              "where goodIn.fa is a multi-sequence fa file containing instances\n"
 	     "of the motif you want to find, badIn.fa is a file containing similar\n"
 	     "sequences but lacking the motif, numMotifs is the number of motifs\n"
 	     "to scan for, background is m0,m1, or m2 for various levels of Markov\n"
 	     "models, and maxOcc is the maximum occurrences of the motif you \n"
 	     "expect to find in a single sequence\n");
     }
 
 /* Print out html header.  Make background color brilliant white. */
 puts("Content-Type:text/html\n");
 printf("<HEAD>\n<TITLE>%s</TITLE>\n</HEAD>\n\n", "Improbizer Results");
-puts("<BODY BGCOLOR=#FFFFFF>\n");
+puts("<BODY BGCOLOR='#FFFFFF'>\n");
 
 /* Wrap error handling et. around doMiddle. */
 htmEmptyShell(doMiddle, NULL);
 
 //carefulCheckHeap();
 
 /* Write end of html. */
 htmlEnd();
 return 0;
 }