mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
Merge pull request #1782 from metalefty/adjust-version-string
Cedar: Trim contiguous whitespaces in version string
This commit is contained in:
commit
e6123d36a0
@ -1564,10 +1564,13 @@ CEDAR *NewCedar(X *server_x, K *server_k)
|
|||||||
#endif // ALPHA_VERSION
|
#endif // ALPHA_VERSION
|
||||||
|
|
||||||
ToStr(tmp2, c->Beta);
|
ToStr(tmp2, c->Beta);
|
||||||
|
Format(tmp2, sizeof(tmp2), " %s %s ", beta_str, tmp2);
|
||||||
|
|
||||||
Format(tmp, sizeof(tmp), "Version %u.%02u Build %u %s %s (%s)",
|
Format(tmp, sizeof(tmp),
|
||||||
|
"Version %u.%02u Build %u"
|
||||||
|
"%s" // Alpha, Beta, Release Candidate or nothing
|
||||||
|
"(%s)", // Language
|
||||||
CEDAR_VERSION_MAJOR, CEDAR_VERSION_MINOR, CEDAR_VERSION_BUILD,
|
CEDAR_VERSION_MAJOR, CEDAR_VERSION_MINOR, CEDAR_VERSION_BUILD,
|
||||||
c->Beta == 0 ? "" : beta_str,
|
|
||||||
c->Beta == 0 ? " " : tmp2,
|
c->Beta == 0 ? " " : tmp2,
|
||||||
_SS("LANGSTR"));
|
_SS("LANGSTR"));
|
||||||
Trim(tmp);
|
Trim(tmp);
|
||||||
|
Loading…
Reference in New Issue
Block a user