mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
fixed whitespace handling in printf function
This commit is contained in:
parent
856dc5d416
commit
6eda200228
@ -1464,6 +1464,12 @@ bool cTextExpr::ParsePrintfToken(cTextToken *t) {
|
|||||||
strncpy((char*)buffer + 1, startVar, varLen);
|
strncpy((char*)buffer + 1, startVar, varLen);
|
||||||
buffer[varLen] = '}';
|
buffer[varLen] = '}';
|
||||||
buffer[varLen+1] = '\0';
|
buffer[varLen+1] = '\0';
|
||||||
|
int i = 1;
|
||||||
|
while(isspace(buffer[varLen-i])) {
|
||||||
|
buffer[varLen-i] = '}';
|
||||||
|
buffer[varLen-i+1] = '\0';
|
||||||
|
i++;
|
||||||
|
}
|
||||||
varTokens.push_back(buffer);
|
varTokens.push_back(buffer);
|
||||||
}
|
}
|
||||||
//evaluate variables
|
//evaluate variables
|
||||||
|
Loading…
Reference in New Issue
Block a user