comparison src/scanner.cpp @ 33:ce229348cdbe stable-2-6

failed to lowercase the first char of html tags
author carl
date Sat, 29 May 2004 15:36:14 -0700
parents d16b27371533
children ccf2c2651c1d
comparison
equal deleted inserted replaced
32:ccb02fc678aa 33:ce229348cdbe
980 } break; 980 } break;
981 981
982 case t_end: { 982 case t_end: {
983 if (count > 1) { 983 if (count > 1) {
984 pending[--count] = '\0'; // null terminate html tag 984 pending[--count] = '\0'; // null terminate html tag
985 for (int i=1; i<count; i++) pending[i] = tolower(pending[i]); 985 for (int i=0; i<count; i++) pending[i] = tolower(pending[i]);
986 memory->new_tag((char*)pending); 986 memory->new_tag((char*)pending);
987 } 987 }
988 st = (c == ' ') ? t_disc : t_init; 988 st = (c == ' ') ? t_disc : t_init;
989 } // fall thru 989 } // fall thru
990 990