forked from 0ad/0ad
Do not call Translate() on empty lines
Reported by Yves at Github: https://github.com/leper/0ad/issues/11 This was SVN commit r15003.
This commit is contained in:
parent
8fea36cdd0
commit
2b192a4fb5
@ -329,7 +329,8 @@ std::string L10n::TranslateLines(const std::string& sourceString)
|
||||
std::string line;
|
||||
|
||||
while (std::getline(stringOfLines, line)) {
|
||||
targetString.append(Translate(line));
|
||||
if (!line.empty())
|
||||
targetString.append(Translate(line));
|
||||
targetString.append("\n");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user