Rev 8396 | Rev 8410 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8396 | Rev 8407 | ||
---|---|---|---|
Line 280... | Line 280... | ||
280 | if (tag.params) tag.parse_params(); |
280 | if (tag.params) tag.parse_params(); |
Line 281... | Line 281... | ||
281 | 281 | ||
282 | if (tag.name) { |
282 | if (tag.name) { |
283 | CheckForLineBreak(); |
283 | CheckForLineBreak(); |
284 | Paint(); |
284 | Paint(); |
- | 285 | if (tag.name) { |
|
- | 286 | EAX = cur_encoding; |
|
- | 287 | $push eax |
|
- | 288 | SetStyle(); |
|
- | 289 | $pop eax |
|
- | 290 | // The thing is that UTF if longer than other encodings. |
|
- | 291 | // So if encoding was changed to UTF than $bufpos position is wrong now, |
|
- | 292 | // and we have to start parse from the very beginning |
|
- | 293 | if (EAX != cur_encoding) && (cur_encoding == CH_UTF8) { |
|
- | 294 | ParseHtml(bufpointer, bufsize); |
|
- | 295 | return; |
|
- | 296 | } |
|
285 | if (tag.name) SetStyle(); |
297 | } |
286 | } |
298 | } |
287 | break; |
299 | break; |
288 | default: |
300 | default: |
289 | _DEFAULT: |
301 | _DEFAULT: |