X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fhtml.c;h=15ca78254376a94b97a750a4fb7df57d3846e36f;hb=caf94d0d1e0761964085d873603dfd77faa7c4fd;hp=d5798cca439647c6e50a6f7117af52ee16da0871;hpb=0793c5beab6d4123b31aee6b9feb7da9c3b0e40e;p=sympathy.git diff --git a/src/html.c b/src/html.c index d5798cc..15ca782 100644 --- a/src/html.c +++ b/src/html.c @@ -10,6 +10,12 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.9 2008/02/27 09:42:22 james + * *** empty log message *** + * + * Revision 1.8 2008/02/27 01:52:38 james + * *** empty log message *** + * * Revision 1.7 2008/02/27 01:52:08 james * *** empty log message *** * @@ -77,14 +83,19 @@ html_entity (FILE * f, int c) fprintf (f, ">"); break; default: - - if ((c>=32) &&(c<127)) { - fputc (c, f); - } else if (c>127) { - fprintf (f, "&#x%04x;",c); - } else { - fputc(' ',f); - } + + if ((c >= 32) && (c < 127)) + { + fputc (c, f); + } + else if (c > 127) + { + fprintf (f, "&#x%04x;", c); + } + else + { + fputc (' ', f); + } } } @@ -148,13 +159,13 @@ html_draw (FILE * f, CRT * c) #else fprintf (f, "\n"); #endif - for (p.y = 0; p.y < CRT_ROWS; ++p.y) + for (p.y = 0; p.y < c->size.y; ++p.y) { o = CRT_ADDR (p.y, 0); #ifndef CSS fprintf (f, ""); #endif - for (p.x = 0; p.x < CRT_COLS; ++p.x, ++o) + for (p.x = 0; p.x < c->size.x; ++p.x, ++o) { html_render (f, c->screen[o]); }