Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 7032 → Rev 7031

/programs/cmm/TWB/TWB.c
79,7 → 79,8
if (!header)
{
strcpy(#header, #line);
ChangeCharset("UTF-8", "CP866", #line);
sprintf(#header, "%s - %s", #line, #version);
line = 0;
return;
}
265,6 → 266,7
if (istag("form")) if (!opened) ignor_text = false;
if(istag("title")) {
if (opened) header=NULL;
else DrawTitle(#header);
return;
}
if (ignor_text) return;
290,15 → 292,7
DrawBuf.Fill(bg_color);
}
} while(GetNextParam());
if (opened) && (cur_encoding==CH_NULL) {
cur_encoding = CH_UTF8;
debugln("Document has no information about encoding, UTF will be used");
}
if (opened) {
ChangeCharset(charsets[cur_encoding], "CP866", #header);
sprintf(#header, "%s - %s", #header, #version);
DrawTitle(#header);
}
if (opened) && (cur_encoding==CH_NULL) debugln("Document has no information about encoding, UTF will be used");
return;
}
if (istag("a")) {
429,7 → 423,6
 
void TWebBrowser::BufEncode(dword set_new_encoding)
{
if (cur_encoding == set_new_encoding) return;
if (o_bufpointer==0)
{
o_bufpointer = malloc(bufsize);
439,11 → 432,12
{
strcpy(bufpointer, o_bufpointer);
}
debugval("cur_encoding ", cur_encoding);
debugval("set_new_encoding", set_new_encoding);
if (cur_encoding!=set_new_encoding) {
cur_encoding = set_new_encoding;
debugln(charsets[cur_encoding]);
bufpointer = ChangeCharset(charsets[cur_encoding], "CP866", bufpointer);
}
}
//============================================================================================
void TWebBrowser::DrawScroller()
{
/programs/cmm/TWB/unicode_tags.h
29,7 → 29,6
"#8211", "-",
"#151", "-",
"#149", "-",
"#9642", "-", //square in the middle of the line
 
"rsquo", "'",
"#39", "'",