Fix line endings

This commit is contained in:
Marianne Gagnon
2015-09-01 19:39:30 -04:00
parent 5c342290b0
commit e2da2a36a1

View File

@@ -392,18 +392,18 @@ void CGUIStaticText::breakText()
length = secondLength + wordlgth;
line = second + word;
}
else if (breakable(c) || UtfNoEnding(c) || UtfNoStarting(c)) //Unusual case
{
BrokenText.push_back(line); //Force breaking to next line too if last word is breakable,
line = word; //it happens when someone writes too many non-newline-starting
length = wordlgth; //chars in the first line, so we ignore the rules.
else if (breakable(c) || UtfNoEnding(c) || UtfNoStarting(c)) //Unusual case
{
BrokenText.push_back(line); //Force breaking to next line too if last word is breakable,
line = word; //it happens when someone writes too many non-newline-starting
length = wordlgth; //chars in the first line, so we ignore the rules.
}
// No suitable place to break words, so there's nothing more we can do
// break to next line
else
// break to next line
else
{
line += word;
length += wordlgth;
length += wordlgth;
}
}
else