mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
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:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user