From: staffcvs Date: Wed, 20 Feb 2008 23:37:25 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=sympathy.git;a=commitdiff_plain;h=3331b39c48edb228a82580253c4ffffd1f3775bf;ds=sidebyside *** empty log message *** --- diff --git a/src/html.c b/src/html.c index 5b79219..cc10a58 100644 --- a/src/html.c +++ b/src/html.c @@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.6 2008/02/20 23:42:05 staffcvs + * *** empty log message *** + * * Revision 1.5 2008/02/20 23:31:48 staffcvs * *** empty log message *** * @@ -92,15 +95,13 @@ html_render (FILE * f, CRT_CA c) if (c.attr & CRT_ATTR_BOLD) fg |= CRT_COLOR_INTENSITY; } -#if 1 +#ifdef CSS + fprintf (f, "", + colormap[fg], colormap[bg]); +#else fprintf (f, "", colormap[bg], colormap[fg]); -#endif - fprintf (f, ""); -#if 0 - fprintf (f, "", - colormap[fg], colormap[bg]); #endif if (c.attr & CRT_ATTR_UNDERLINE) @@ -123,13 +124,12 @@ html_render (FILE * f, CRT_CA c) { fprintf (f, ""); } +#ifdef CSS + fprintf (f, ""); +#else fprintf (f, ""); -#if 1 fprintf (f, ""); #endif -#if 0 - fprintf (f, ""); -#endif } static void @@ -138,21 +138,32 @@ html_draw (FILE * f, CRT * c) CRT_Pos p; int o; -// fprintf (f, "
");
+#ifdef CSS
+  fprintf (f, "
");
+#else
   fprintf (f, "\n");
+#endif
   for (p.y = 0; p.y < CRT_ROWS; ++p.y)
     {
       o = CRT_ADDR (p.y, 0);
+#ifndef CSS
       fprintf (f, "");
+#endif
       for (p.x = 0; p.x < CRT_COLS; ++p.x, ++o)
         {
           html_render (f, c->screen[o]);
         }
+#ifdef CSS
+      fprintf (f, "\n");
+#else
       fprintf (f, "\n");
-// fprintf(f,"\n");
+#endif
     }
+#ifdef CSS
+  fprintf (f, "\n");
+#else
   fprintf (f, "
"); -// fprintf (f, "
\n"); +#endif } diff --git a/version-md5sums b/version-md5sums index 3a0cf05..6259056 100644 --- a/version-md5sums +++ b/version-md5sums @@ -1 +1,2 @@ 6488eda7d5c4d46ce3f587f5dc745dfa 1.0.1 +ca1ac5a7fc122af620b0cf7296c324c3 1.0.2 diff --git a/version-micro b/version-micro index d00491f..0cfbf08 100644 --- a/version-micro +++ b/version-micro @@ -1 +1 @@ -1 +2