- if (source[i-1] != '>')
- while ((i < end_pos) && ((c = source[i++]) != '>')) {
- if ((c >= 'a') && (c <= 'z')) c -= ('a' - 'A');
+ // if the tag has parameters, read them and "normalize" them,
+ // i.e. convert to uppercase, replace whitespaces by spaces and
+ // remove whitespaces around '=':
+ if (source[i-1] != wxT('>'))
+ while ((i < end_pos) && ((c = source[i++]) != wxT('>')))
+ {
+ if ((c >= wxT('a')) && (c <= wxT('z')))
+ c -= (wxT('a') - wxT('A'));
+ if (c == wxT('\r') || c == wxT('\n') || c == wxT('\t'))
+ c = wxT(' '); // make future parsing a bit simpler