diff options
author | staffcvs <> | 2008-02-20 23:31:48 +0000 |
---|---|---|
committer | staffcvs <> | 2008-02-20 23:31:48 +0000 |
commit | 1e871729edbe4dc505fb42dca59422b097fe2392 (patch) | |
tree | 0734f7d119eb46f73f606cee33804601db42d4fa | |
parent | c1aa93b7aa74d01cf1d1686e0c90decc24a344c6 (diff) | |
download | sympathy-1e871729edbe4dc505fb42dca59422b097fe2392.tar.gz sympathy-1e871729edbe4dc505fb42dca59422b097fe2392.tar.bz2 sympathy-1e871729edbe4dc505fb42dca59422b097fe2392.zip |
*** empty log message ***
-rw-r--r-- | src/html.c | 22 |
1 files changed, 21 insertions, 1 deletions
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.5 2008/02/20 23:31:48 staffcvs + * *** empty log message *** + * * Revision 1.4 2008/02/20 22:54:22 staffcvs * *** empty log message *** * @@ -89,8 +92,16 @@ html_render (FILE * f, CRT_CA c) if (c.attr & CRT_ATTR_BOLD) fg |= CRT_COLOR_INTENSITY; } +#if 1 fprintf (f, "<td bgcolor='#%06x'><font color='#%06x'>", colormap[bg], colormap[fg]); +#endif + + fprintf (f, "<tt>"); +#if 0 + fprintf (f, "<span style='color: #%06x; background-color: #%06x'>", + colormap[fg], colormap[bg]); +#endif if (c.attr & CRT_ATTR_UNDERLINE) fprintf (f, "<ul>"); @@ -112,7 +123,13 @@ html_render (FILE * f, CRT_CA c) { fprintf (f, "</font>"); } + fprintf (f, "</tt>"); +#if 1 fprintf (f, "</td>"); +#endif +#if 0 + fprintf (f, "</span>"); +#endif } static void @@ -121,6 +138,7 @@ html_draw (FILE * f, CRT * c) CRT_Pos p; int o; +// fprintf (f, "<pre>"); fprintf (f, "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n"); for (p.y = 0; p.y < CRT_ROWS; ++p.y) { @@ -131,8 +149,10 @@ html_draw (FILE * f, CRT * c) html_render (f, c->screen[o]); } fprintf (f, "</tr>\n"); +// fprintf(f,"\n"); } - fprintf (f, "</table>\n"); + fprintf (f, "</table>"); +// fprintf (f, "</pre>\n"); } |