Rev 3059 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3059 | Rev 3060 | ||
---|---|---|---|
Line 461... | Line 461... | ||
461 | 461 | ||
Line 462... | Line 462... | ||
462 | if (tag[strlen(#tag)-1]=='/') tag[strlen(#tag)-1]=NULL; //for br/ |
462 | if (tag[strlen(#tag)-1]=='/') tag[strlen(#tag)-1]=NULL; //for br/ |
463 | if (tagparam) && (strlen(#tagparam) < 4000) GetNextParam(); |
463 | if (tagparam) && (strlen(#tagparam) < 4000) GetNextParam(); |
Line -... | Line 464... | ||
- | 464 | ||
- | 465 | if (stolbec + strlen(#line) > lines.column_max) |
|
- | 466 | { |
|
- | 467 | perenos_num = strrchr(#line, ' '); |
|
- | 468 | if (!perenos_num) && (strlen(#line)>lines.column_max) perenos_num=lines.column_max; |
|
- | 469 | strcpy(#temp, #line + perenos_num); //ïåðåíîñ ïî ñëîâàì |
|
- | 470 | line[perenos_num] = 0x00; |
|
- | 471 | if (stroka >= lines.visible) && (lines.first <>0) break 1; //óõîäèì... |
|
- | 472 | DrawPage(); |
|
- | 473 | strcpy(#line, #temp); |
|
- | 474 | ||
- | 475 | TextGoDown(left + 5, stroka * 10 + top + 5, width - 20); //çàêðàøèâàåì ñëåäóùóþ ñòðîêó |
|
464 | 476 | } |
|
465 | DrawPage(); |
477 | DrawPage(); |
Line 466... | Line 478... | ||
466 | line=NULL; |
478 | line=NULL; |
Line 486... | Line 498... | ||
486 | strcpy(#temp, #line + perenos_num); //ïåðåíîñ ïî ñëîâàì |
498 | strcpy(#temp, #line + perenos_num); //ïåðåíîñ ïî ñëîâàì |
487 | line[perenos_num] = 0x00; |
499 | line[perenos_num] = 0x00; |
488 | if (stroka >= lines.visible) && (lines.first <>0) break 1; //óõîäèì... |
500 | if (stroka >= lines.visible) && (lines.first <>0) break 1; //óõîäèì... |
489 | DrawPage(); |
501 | DrawPage(); |
490 | TextGoDown(left + 5, stroka * 10 + top + 5, width - 20); //çàêðàøèâàåì ñëåäóùóþ ñòðîêó |
502 | strcpy(#line, #temp); |
491 | strcpy(#line, #temp); |
- | |
492 | } |
503 | |
- | 504 | TextGoDown(left + 5, stroka * 10 + top + 5, width - 20); //çàêðàøèâàåì ñëåäóùóþ ñòðîêó |
|
- | 505 | } |
|
493 | } |
506 | } |
494 | } |
507 | } |
495 | 508 | ||
Line 496... | Line 509... | ||
496 | DrawPage(); //ðèñóåò ïîñëåäíþþ ñòðîêó, ïîòîì ýòî íàäî óáðàòü, îïòèìèçèðîâàâ êîä |
509 | DrawPage(); //ðèñóåò ïîñëåäíþþ ñòðîêó, ïîòîì ýòî íàäî óáðàòü, îïòèìèçèðîâàâ êîä |