Patch level : 12.0 1254

Files correlati     : ve1.exe

Commento:
la stampa docmenti tagliava spazi nelle descrizioni lunghe
This commit is contained in:
Alessandro Bonazzi 2023-03-17 19:21:39 +01:00
parent 0630d48ddf
commit 4c87758908
2 changed files with 5 additions and 4 deletions

View File

@ -2646,7 +2646,8 @@ void TReport_book::define_frame(const TReport_rct& rr)
long TReport_book::print_section(char type, int level) long TReport_book::print_section(char type, int level)
{ {
long h = -3; // Hidden long h = -3; // Hidden
TReport_section* rs = _report->find_section(type, level); TReport_section* rs = _report->find_section(type, level);
if (rs != NULL) if (rs != NULL)
h = print_section(*rs); h = print_section(*rs);
return h; return h;

View File

@ -2175,14 +2175,14 @@ void TParagraph_string::tokenize()
} }
break; break;
} }
if (add_now >= start) if (add_now >= start)
{ {
const TString& tok = sub(start, add_now); const TString& tok = sub(start, add_now);
tmp.add(tok); tmp.add(tok);
tmp.rtrim(); // Preserva gli spazi iniziali dopo un a capo forzato da \n tmp.rtrim(); // Preserva gli spazi iniziali dopo un a capo forzato da \n
start = add_now + (_str[add_now] <= ' '); start = add_now + (_str[add_now] < ' ');
last_space = start; last_space = start;
} }
} }
tmp.rtrim(); tmp.rtrim();
TToken_string::operator=(tmp); TToken_string::operator=(tmp);