Changed: Only put a space if several conditions

--HG--
branch : develop
This commit is contained in:
kervala 2016-11-04 20:21:18 +01:00
parent a2a7dfa028
commit 542c63f03d

View file

@ -416,7 +416,11 @@ bool readPhraseFileFromString(ucstring const& doc, const std::string &filename,
phrase.Clauses.size()+1); phrase.Clauses.size()+1);
return false; return false;
} }
clause.Conditions += "(" + cond + ") ";
// only prepend a space if required
if (!clause.Conditions.empty()) clause.Conditions += " ";
clause.Conditions += "(" + cond + ")";
CI18N::skipWhiteSpace(first, last, &clause.Comments); CI18N::skipWhiteSpace(first, last, &clause.Comments);
} }