- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
String filler = "";
int tot = text.length();
int til = 18 - (tot/100);
for(int i = 0; i < tot; i++)
{
if(text.charAt(i) == '\n')
{
text = text.substring(0, i) + "<br/>" + text.substring(i+1);
tot += 3; i += 3;
til--;
}
}
Комментарии (3) RSS