Correzione alla ricerca di due spazi
git-svn-id: svn://10.65.10.50/trunk@1477 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
6c5def062d
commit
4c90124ae9
@ -184,14 +184,18 @@ void TPrintwin::paint_row(long j)
|
||||
const char* beg = cp;
|
||||
while (*beg)
|
||||
{
|
||||
int len = 0;
|
||||
for (; *beg == ' '; beg++) // Salta spazi iniziali
|
||||
pos++;
|
||||
for (const char* end = beg; *end > ' ' || (*end && *(end+1) > ' '); end++)
|
||||
len++; // Misura sringa da stampare
|
||||
xvt_dwin_draw_text(win(), _hofs + LEN_SPACES(win(), pos), y, (char*)beg, len);
|
||||
pos += len;
|
||||
beg = end;
|
||||
pos++;
|
||||
|
||||
if (*beg)
|
||||
{
|
||||
int len = 0;
|
||||
for (const char * end = beg; *end && (*end != ' ' || *(end+1) != ' '); end++)
|
||||
len++; // Misura sringa da stampare
|
||||
xvt_dwin_draw_text(win(), _hofs + LEN_SPACES(win(), pos), y, (char*)beg, len);
|
||||
pos += len;
|
||||
beg = end;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user