Rev 7797 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7797 | Rev 7799 | ||
---|---|---|---|
Line 339... | Line 339... | ||
339 | DrawBuf.Fill(0, page_bg); |
339 | DrawBuf.Fill(0, page_bg); |
340 | } |
340 | } |
341 | // Autodetecting encoding if no encoding was set |
341 | // Autodetecting encoding if no encoding was set |
342 | if (tag.opened) && (custom_encoding==-1) && (cur_encoding == CH_CP866) { |
342 | if (tag.opened) && (custom_encoding==-1) && (cur_encoding == CH_CP866) { |
343 | if (strstr(bufpointer, "\208\190")) ChangeEncoding(CH_UTF8); |
343 | if (strstr(bufpointer, "\208\190")) ChangeEncoding(CH_UTF8); |
344 | else if (chrnum(bufpointer, '\x246')>5) ChangeEncoding(CH_CP1251); |
344 | else if (chrnum(bufpointer, '\246')>5) ChangeEncoding(CH_CP1251); |
345 | } |
345 | } |
346 | return; |
346 | return; |
347 | } |
347 | } |
348 | if (tag.is("br")) { NewLine(); return; } |
348 | if (tag.is("br")) { NewLine(); return; } |
349 | if (tag.is("b")) || (tag.is("strong")) || (tag.is("big")) || (tag.is("w:b")) { |
349 | if (tag.is("b")) || (tag.is("strong")) || (tag.is("big")) || (tag.is("w:b")) { |